forked from Bad-Scientists/AF-Script-Packet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventManager.d
1610 lines (1192 loc) · 55.2 KB
/
eventManager.d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Event Manager (AI queue) functions [WIP]
*/
func int zCEventMessage_MD_GetNumOfSubTypes (var int eMsg) {
//0x00401E90 public: virtual int __thiscall zCEventMessage::MD_GetNumOfSubTypes(void)
const int zCEventMessage__MD_GetNumOfSubTypes_G1 = 4202128;
//0x00401FE0 public: virtual int __thiscall zCEventMessage::MD_GetNumOfSubTypes(void)
const int zCEventMessage__MD_GetNumOfSubTypes_G2 = 4202464;
if (!Hlp_Is_zCEventMessage (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__MD_GetNumOfSubTypes_G1, zCEventMessage__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMessage_GetSubType (var int eMsg) {
//0x0073F4C0 public: unsigned short __thiscall zCEventMessage::GetSubType(void)const
const int zCEventMessage__GetSubType_G1 = 7599296;
//0x00674290 public: unsigned short __thiscall zCEventMessage::GetSubType(void)const
const int zCEventMessage__GetSubType_G2 = 6767248;
if (!Hlp_Is_zCEventMessage (eMsg)) { return -1; };
var int retVal;
const int call = 0;
if (CALL_Begin(call)) {
CALL_PutRetValTo (_@ (retVal));
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__GetSubType_G1, zCEventMessage__GetSubType_G2));
call = CALL_End();
};
return + (retVal & 255);
};
//---
func int zCEventCore_MD_GetNumOfSubTypes (var int eMsg) {
//0x00401FF0 public: virtual int __thiscall zCEventCore::MD_GetNumOfSubTypes(void)
const int zCEventCore__MD_GetNumOfSubTypes_G1 = 4202480;
//0x00402140 public: virtual int __thiscall zCEventCore::MD_GetNumOfSubTypes(void)
const int zCEventCore__MD_GetNumOfSubTypes_G2 = 4202816;
if (!Hlp_Is_zCEventCore (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventCore__MD_GetNumOfSubTypes_G1, zCEventCore__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEvMsgCutscene_MD_GetNumOfSubTypes (var int eMsg) {
//0x0040C2B0 public: virtual int __thiscall zCEvMsgCutscene::MD_GetNumOfSubTypes(void)
const int zCEvMsgCutscene__MD_GetNumOfSubTypes_G1 = 4244144;
//0x0040C6A0 public: virtual int __thiscall zCEvMsgCutscene::MD_GetNumOfSubTypes(void)
const int zCEvMsgCutscene__MD_GetNumOfSubTypes_G2 = 4245152;
if (!Hlp_Is_zCEvMsgCutscene (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEvMsgCutscene__MD_GetNumOfSubTypes_G1, zCEvMsgCutscene__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCCSCamera_EventMsg_MD_GetNumOfSubTypes (var int eMsg) {
//0x004BDBA0 public: virtual int __thiscall zCCSCamera_EventMsg::MD_GetNumOfSubTypes(void)
const int zCCSCamera_EventMsg__MD_GetNumOfSubTypes_G1 = 4971424;
//0x004C7000 public: virtual int __thiscall zCCSCamera_EventMsg::MD_GetNumOfSubTypes(void)
const int zCCSCamera_EventMsg__MD_GetNumOfSubTypes_G2 = 5009408;
if (!Hlp_Is_zCCSCamera_EventMsg (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCCSCamera_EventMsg__MD_GetNumOfSubTypes_G1, zCCSCamera_EventMsg__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCCSCamera_EventMsgActivate_MD_GetNumOfSubTypes (var int eMsg) {
//0x004BDFA0 public: virtual int __thiscall zCCSCamera_EventMsgActivate::MD_GetNumOfSubTypes(void)
const int zCCSCamera_EventMsgActivate__MD_GetNumOfSubTypes_G1 = 4972448;
//0x004C7400 public: virtual int __thiscall zCCSCamera_EventMsgActivate::MD_GetNumOfSubTypes(void)
const int zCCSCamera_EventMsgActivate__MD_GetNumOfSubTypes_G2 = 5010432;
if (!Hlp_Is_zCCSCamera_EventMsgActivate (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCCSCamera_EventMsgActivate__MD_GetNumOfSubTypes_G1, zCCSCamera_EventMsgActivate__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventCommon_MD_GetNumOfSubTypes (var int eMsg) {
//0x005E2200 public: virtual int __thiscall zCEventCommon::MD_GetNumOfSubTypes(void)
const int zCEventCommon__MD_GetNumOfSubTypes_G1 = 6169088;
//0x0060F0D0 public: virtual int __thiscall zCEventCommon::MD_GetNumOfSubTypes(void)
const int zCEventCommon__MD_GetNumOfSubTypes_G2 = 6353104;
if (!Hlp_Is_zCEventCommon (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventCommon__MD_GetNumOfSubTypes_G1, zCEventCommon__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMover_MD_GetNumOfSubTypes (var int eMsg) {
//0x005E25E0 public: virtual int __thiscall zCEventMover::MD_GetNumOfSubTypes(void)
const int zCEventMover__MD_GetNumOfSubTypes_G1 = 6170080;
//0x0060F470 public: virtual int __thiscall zCEventMover::MD_GetNumOfSubTypes(void)
const int zCEventMover__MD_GetNumOfSubTypes_G2 = 6354032;
if (!Hlp_Is_zCEventMover (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMover__MD_GetNumOfSubTypes_G1, zCEventMover__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventScreenFX_MD_GetNumOfSubTypes (var int eMsg) {
//0x005E2920 public: virtual int __thiscall zCEventScreenFX::MD_GetNumOfSubTypes(void)
const int zCEventScreenFX__MD_GetNumOfSubTypes_G1 = 6170912;
//0x0060F790 public: virtual int __thiscall zCEventScreenFX::MD_GetNumOfSubTypes(void)
const int zCEventScreenFX__MD_GetNumOfSubTypes_G2 = 6354832;
if (!Hlp_Is_zCEventScreenFX (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventScreenFX__MD_GetNumOfSubTypes_G1, zCEventScreenFX__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMobMsg_MD_GetNumOfSubTypes (var int eMsg) {
//0x0067A560 public: virtual int __thiscall oCMobMsg::MD_GetNumOfSubTypes(void)
const int oCMobMsg__MD_GetNumOfSubTypes_G1 = 6792544;
//0x0071B740 public: virtual int __thiscall oCMobMsg::MD_GetNumOfSubTypes(void)
const int oCMobMsg__MD_GetNumOfSubTypes_G2 = 7452480;
if (!Hlp_Is_oCMobMsg (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMobMsg__MD_GetNumOfSubTypes_G1, oCMobMsg__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMsgDamage_MD_GetNumOfSubTypes (var int eMsg) {
//0x006BE210 public: virtual int __thiscall oCMsgDamage::MD_GetNumOfSubTypes(void)
const int oCMsgDamage__MD_GetNumOfSubTypes_G1 = 7070224;
//0x007653B0 public: virtual int __thiscall oCMsgDamage::MD_GetNumOfSubTypes(void)
const int oCMsgDamage__MD_GetNumOfSubTypes_G2 = 7754672;
if (!Hlp_Is_oCMsgDamage (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgDamage__MD_GetNumOfSubTypes_G1, oCMsgDamage__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMsgMovement_MD_GetNumOfSubTypes (var int eMsg) {
//0x006BEEF0 public: virtual int __thiscall oCMsgMovement::MD_GetNumOfSubTypes(void)
const int oCMsgMovement__MD_GetNumOfSubTypes_G1 = 7073520;
//0x00766090 public: virtual int __thiscall oCMsgMovement::MD_GetNumOfSubTypes(void)
const int oCMsgMovement__MD_GetNumOfSubTypes_G2 = 7757968;
if (!Hlp_Is_oCMsgMovement (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgMovement__MD_GetNumOfSubTypes_G1, oCMsgMovement__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMsgWeapon_MD_GetNumOfSubTypes (var int eMsg) {
//0x006BF920 public: virtual int __thiscall oCMsgWeapon::MD_GetNumOfSubTypes(void)
const int oCMsgWeapon__MD_GetNumOfSubTypes_G1 = 7076128;
//0x00766AC0 public: virtual int __thiscall oCMsgWeapon::MD_GetNumOfSubTypes(void)
const int oCMsgWeapon__MD_GetNumOfSubTypes_G2 = 7760576;
if (!Hlp_Is_oCMsgWeapon (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgWeapon__MD_GetNumOfSubTypes_G1, oCMsgWeapon__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMsgAttack_MD_GetNumOfSubTypes (var int eMsg) {
//0x006C0500 public: virtual int __thiscall oCMsgAttack::MD_GetNumOfSubTypes(void)
const int oCMsgAttack__MD_GetNumOfSubTypes_G1 = 7079168;
//0x007676A0 public: virtual int __thiscall oCMsgAttack::MD_GetNumOfSubTypes(void)
const int oCMsgAttack__MD_GetNumOfSubTypes_G2 = 7763616;
if (!Hlp_Is_oCMsgAttack (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgAttack__MD_GetNumOfSubTypes_G1, oCMsgAttack__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMsgState_MD_GetNumOfSubTypes (var int eMsg) {
//0x006C1340 public: virtual int __thiscall oCMsgState::MD_GetNumOfSubTypes(void)
const int oCMsgState__MD_GetNumOfSubTypes_G1 = 7082816;
//0x007684E0 public: virtual int __thiscall oCMsgState::MD_GetNumOfSubTypes(void)
const int oCMsgState__MD_GetNumOfSubTypes_G2 = 7767264;
if (!Hlp_Is_oCMsgState (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgState__MD_GetNumOfSubTypes_G1, oCMsgState__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMsgManipulate_MD_GetNumOfSubTypes (var int eMsg) {
//0x006C23A0 public: virtual int __thiscall oCMsgManipulate::MD_GetNumOfSubTypes(void)
const int oCMsgManipulate__MD_GetNumOfSubTypes_G1 = 7087008;
//0x00769540 public: virtual int __thiscall oCMsgManipulate::MD_GetNumOfSubTypes(void)
const int oCMsgManipulate__MD_GetNumOfSubTypes_G2 = 7771456;
if (!Hlp_Is_oCMsgManipulate (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgManipulate__MD_GetNumOfSubTypes_G1, oCMsgManipulate__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMsgConversation_MD_GetNumOfSubTypes (var int eMsg) {
//0x006C3760 public: virtual int __thiscall oCMsgConversation::MD_GetNumOfSubTypes(void)
const int oCMsgConversation__MD_GetNumOfSubTypes_G1 = 7092064;
//0x0076A900 public: virtual int __thiscall oCMsgConversation::MD_GetNumOfSubTypes(void)
const int oCMsgConversation__MD_GetNumOfSubTypes_G2 = 7776512;
if (!Hlp_Is_oCMsgConversation (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgConversation__MD_GetNumOfSubTypes_G1, oCMsgConversation__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int oCMsgMagic_MD_GetNumOfSubTypes (var int eMsg) {
//0x006C4240 public: virtual int __thiscall oCMsgMagic::MD_GetNumOfSubTypes(void)
const int oCMsgMagic__MD_GetNumOfSubTypes_G1 = 7094848;
//0x0076B420 public: virtual int __thiscall oCMsgMagic::MD_GetNumOfSubTypes(void)
const int oCMsgMagic__MD_GetNumOfSubTypes_G2 = 7779360;
if (!Hlp_Is_oCMsgMagic (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgMagic__MD_GetNumOfSubTypes_G1, oCMsgMagic__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMusicControler_MD_GetNumOfSubTypes (var int eMsg) {
//0x0070D2E0 public: virtual int __thiscall zCEventMusicControler::MD_GetNumOfSubTypes(void)
const int zCEventMusicControler__MD_GetNumOfSubTypes_G1 = 7394016;
//0x00642B30 public: virtual int __thiscall zCEventMusicControler::MD_GetNumOfSubTypes(void)
const int zCEventMusicControler__MD_GetNumOfSubTypes_G2 = 6564656;
if (!Hlp_Is_zCEventMusicControler (eMsg)) { return -1; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMusicControler__MD_GetNumOfSubTypes_G1, zCEventMusicControler__MD_GetNumOfSubTypes_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
//MD_GetSubTypeString functions
func string zCEvMsgCutscene_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x0040C2C0 public: virtual class zSTRING __thiscall zCEvMsgCutscene::MD_GetSubTypeString(int)
const int zCEvMsgCutscene__MD_GetSubTypeString_G1 = 4244160;
//0x0040C6B0 public: virtual class zSTRING __thiscall zCEvMsgCutscene::MD_GetSubTypeString(int)
const int zCEvMsgCutscene__MD_GetSubTypeString_G2 = 4245168;
if (!Hlp_Is_zCEvMsgCutscene (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCEvMsgCutscene__MD_GetSubTypeString_G1, zCEvMsgCutscene__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string zCCSCamera_EventMsg_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x004BDBB0 public: virtual class zSTRING __thiscall zCCSCamera_EventMsg::MD_GetSubTypeString(int)
const int zCCSCamera_EventMsg__MD_GetSubTypeString_G1 = 4971440;
//0x004C7010 public: virtual class zSTRING __thiscall zCCSCamera_EventMsg::MD_GetSubTypeString(int)
const int zCCSCamera_EventMsg__MD_GetSubTypeString_G2 = 5009424;
if (!Hlp_Is_zCCSCamera_EventMsg (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCCSCamera_EventMsg__MD_GetSubTypeString_G1, zCCSCamera_EventMsg__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string zCCSCamera_EventMsgActivate_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x004BDFB0 public: virtual class zSTRING __thiscall zCCSCamera_EventMsgActivate::MD_GetSubTypeString(int)
const int zCCSCamera_EventMsgActivate__MD_GetSubTypeString_G1 = 4972464;
//0x004C7410 public: virtual class zSTRING __thiscall zCCSCamera_EventMsgActivate::MD_GetSubTypeString(int)
const int zCCSCamera_EventMsgActivate__MD_GetSubTypeString_G2 = 5010448;
if (!Hlp_Is_zCCSCamera_EventMsgActivate (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCCSCamera_EventMsgActivate__MD_GetSubTypeString_G1, zCCSCamera_EventMsgActivate__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string zCEventCore_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x005D9A00 public: virtual class zSTRING __thiscall zCEventCore::MD_GetSubTypeString(int)
const int zCEventCore__MD_GetSubTypeString_G1 = 6134272;
//0x006062F0 public: virtual class zSTRING __thiscall zCEventCore::MD_GetSubTypeString(int)
const int zCEventCore__MD_GetSubTypeString_G2 = 6316784;
if (!Hlp_Is_zCEventCore (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCEventCore__MD_GetSubTypeString_G1, zCEventCore__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string zCEventCommon_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x005E2970 public: virtual class zSTRING __thiscall zCEventCommon::MD_GetSubTypeString(int)
const int zCEventCommon__MD_GetSubTypeString_G1 = 6170992;
//0x0060F7E0 public: virtual class zSTRING __thiscall zCEventCommon::MD_GetSubTypeString(int)
const int zCEventCommon__MD_GetSubTypeString_G2 = 6354912;
if (!Hlp_Is_zCEventCommon (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCEventCommon__MD_GetSubTypeString_G1, zCEventCommon__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string zCEventMover_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x005E2AD0 public: virtual class zSTRING __thiscall zCEventMover::MD_GetSubTypeString(int)
const int zCEventMover__MD_GetSubTypeString_G1 = 6171344;
//0x0060F940 public: virtual class zSTRING __thiscall zCEventMover::MD_GetSubTypeString(int)
const int zCEventMover__MD_GetSubTypeString_G2 = 6355264;
if (!Hlp_Is_zCEventMover (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCEventMover__MD_GetSubTypeString_G1, zCEventMover__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string zCEventScreenFX_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x005EA670 public: virtual class zSTRING __thiscall zCEventScreenFX::MD_GetSubTypeString(int)
const int zCEventScreenFX__MD_GetSubTypeString_G1 = 6202992;
//0x00617720 public: virtual class zSTRING __thiscall zCEventScreenFX::MD_GetSubTypeString(int)
const int zCEventScreenFX__MD_GetSubTypeString_G2 = 6387488;
if (!Hlp_Is_zCEventScreenFX (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCEventScreenFX__MD_GetSubTypeString_G1, zCEventScreenFX__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMobMsg_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x0067A570 public: virtual class zSTRING __thiscall oCMobMsg::MD_GetSubTypeString(int)
const int oCMobMsg__MD_GetSubTypeString_G1 = 6792560;
//0x0071B750 public: virtual class zSTRING __thiscall oCMobMsg::MD_GetSubTypeString(int)
const int oCMobMsg__MD_GetSubTypeString_G2 = 7452496;
if (!Hlp_Is_oCMobMsg (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMobMsg__MD_GetSubTypeString_G1, oCMobMsg__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMsgDamage_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x006BE220 public: virtual class zSTRING __thiscall oCMsgDamage::MD_GetSubTypeString(int)
const int oCMsgDamage__MD_GetSubTypeString_G1 = 7070240;
//0x007653C0 public: virtual class zSTRING __thiscall oCMsgDamage::MD_GetSubTypeString(int)
const int oCMsgDamage__MD_GetSubTypeString_G2 = 7754688;
if (!Hlp_Is_oCMsgDamage (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgDamage__MD_GetSubTypeString_G1, oCMsgDamage__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMsgWeapon_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x006BF930 public: virtual class zSTRING __thiscall oCMsgWeapon::MD_GetSubTypeString(int)
const int oCMsgWeapon__MD_GetSubTypeString_G1 = 7076144;
//0x00766AD0 public: virtual class zSTRING __thiscall oCMsgWeapon::MD_GetSubTypeString(int)
const int oCMsgWeapon__MD_GetSubTypeString_G2 = 7760592;
if (!Hlp_Is_oCMsgWeapon (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgWeapon__MD_GetSubTypeString_G1, oCMsgWeapon__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMsgMovement_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x006BEF00 public: virtual class zSTRING __thiscall oCMsgMovement::MD_GetSubTypeString(int)
const int oCMsgMovement__MD_GetSubTypeString_G1 = 7073536;
//0x007660A0 public: virtual class zSTRING __thiscall oCMsgMovement::MD_GetSubTypeString(int)
const int oCMsgMovement__MD_GetSubTypeString_G2 = 7757984;
if (!Hlp_Is_oCMsgMovement (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgMovement__MD_GetSubTypeString_G1, oCMsgMovement__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMsgAttack_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x006C0510 public: virtual class zSTRING __thiscall oCMsgAttack::MD_GetSubTypeString(int)
const int oCMsgAttack__MD_GetSubTypeString_G1 = 7079184;
//0x007676B0 public: virtual class zSTRING __thiscall oCMsgAttack::MD_GetSubTypeString(int)
const int oCMsgAttack__MD_GetSubTypeString_G2 = 7763632;
if (!Hlp_Is_oCMsgAttack (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgAttack__MD_GetSubTypeString_G1, oCMsgAttack__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMsgState_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x006C1350 public: virtual class zSTRING __thiscall oCMsgState::MD_GetSubTypeString(int)
const int oCMsgState__MD_GetSubTypeString_G1 = 7082832;
//0x007684F0 public: virtual class zSTRING __thiscall oCMsgState::MD_GetSubTypeString(int)
const int oCMsgState__MD_GetSubTypeString_G2 = 7767280;
if (!Hlp_Is_oCMsgState (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgState__MD_GetSubTypeString_G1, oCMsgState__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMsgManipulate_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x006C23B0 public: virtual class zSTRING __thiscall oCMsgManipulate::MD_GetSubTypeString(int)
const int oCMsgManipulate__MD_GetSubTypeString_G1 = 7087024;
//0x00769550 public: virtual class zSTRING __thiscall oCMsgManipulate::MD_GetSubTypeString(int)
const int oCMsgManipulate__MD_GetSubTypeString_G2 = 7771472;
if (!Hlp_Is_oCMsgManipulate (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgManipulate__MD_GetSubTypeString_G1, oCMsgManipulate__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMsgMagic_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x006C4250 public: virtual class zSTRING __thiscall oCMsgMagic::MD_GetSubTypeString(int)
const int oCMsgMagic__MD_GetSubTypeString_G1 = 7094864;
//0x0076B430 public: virtual class zSTRING __thiscall oCMsgMagic::MD_GetSubTypeString(int)
const int oCMsgMagic__MD_GetSubTypeString_G2 = 7779376;
if (!Hlp_Is_oCMsgMagic (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgMagic__MD_GetSubTypeString_G1, oCMsgMagic__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string zCEventMusicControler_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x0070D370 public: virtual class zSTRING __thiscall zCEventMusicControler::MD_GetSubTypeString(int)
const int zCEventMusicControler__MD_GetSubTypeString_G1 = 7394160;
//0x00642BC0 public: virtual class zSTRING __thiscall zCEventMusicControler::MD_GetSubTypeString(int)
const int zCEventMusicControler__MD_GetSubTypeString_G2 = 6564800;
if (!Hlp_Is_zCEventMusicControler (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCEventMusicControler__MD_GetSubTypeString_G1, zCEventMusicControler__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func int oCNpc_GetTalkingWithMessage (var int slfInstance, var int npcInstance) {
//0x00633620 public: class zCEventMessage * __thiscall oCNpc::GetTalkingWithMessage(class oCNpc *)
const int oCNpc__GetTalkingWithMessage_G1 = 6501920;
//0x006BCFB0 public: class zCEventMessage * __thiscall oCNpc::GetTalkingWithMessage(class oCNpc *)
const int oCNpc__GetTalkingWithMessage_G2 = 7065520;
var oCNpc slf; slf = Hlp_GetNPC (slfInstance);
if (!Hlp_IsValidNPC (slf)) { return 0; };
var oCNpc npc; npc = Hlp_GetNPC (npcInstance);
if (!Hlp_IsValidNPC (npc)) { return 0; };
var int slfPtr; slfPtr = _@ (slf);
var int npcPtr; npcPtr = _@ (npc);
const int call = 0;
if (CALL_Begin(call)) {
CALL_PtrParam (_@ (npcPtr));
CALL__thiscall (_@ (slfPtr), MEMINT_SwitchG1G2 (oCNpc__GetTalkingWithMessage_G1, oCNpc__GetTalkingWithMessage_G2));
call = CALL_End();
};
return CALL_RetValAsPtr ();
};
func int zCEventMessage_GetClassDef (var int eMsg) {
//0x00401DF0 private: virtual class zCClassDef * __thiscall zCEventMessage::_GetClassDef(void)const
const int zCEventMessage___GetClassDef_G1 = 4201968;
//0x00401F30 private: virtual class zCClassDef * __thiscall zCEventMessage::_GetClassDef(void)const
const int zCEventMessage___GetClassDef_G2 = 4202288;
if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage___GetClassDef_G1, zCEventMessage___GetClassDef_G2));
call = CALL_End();
};
return CALL_RetValAsPtr ();
};
func int zCEventMessage_IsOverlay (var int eMsg) {
//0x00401E00 public: virtual int __thiscall zCEventMessage::IsOverlay(void)
const int zCEventMessage__IsOverlay_G1 = 4201984;
//0x00401F40 public: virtual int __thiscall zCEventMessage::IsOverlay(void)
const int zCEventMessage__IsOverlay_G2 = 4202304;
if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__IsOverlay_G1, zCEventMessage__IsOverlay_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMessage_IsNetRelevant (var int eMsg) {
//0x00401E10 public: virtual int __thiscall zCEventMessage::IsNetRelevant(void)
const int zCEventMessage__IsNetRelevant_G1 = 4202000;
//0x00401F50 public: virtual int __thiscall zCEventMessage::IsNetRelevant(void)
const int zCEventMessage__IsNetRelevant_G2 = 4202320;
if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__IsNetRelevant_G1, zCEventMessage__IsNetRelevant_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMessage_IsHighPriority (var int eMsg) {
//0x00401E20 public: virtual int __thiscall zCEventMessage::IsHighPriority(void)
const int zCEventMessage__IsHighPriority_G1 = 4202016;
//0x00401F60 public: virtual int __thiscall zCEventMessage::IsHighPriority(void)
const int zCEventMessage__IsHighPriority_G2 = 4202336;
if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__IsHighPriority_G1, zCEventMessage__IsHighPriority_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMessage_IsJob (var int eMsg) {
//0x00401E30 public: virtual int __thiscall zCEventMessage::IsJob(void)
const int zCEventMessage__IsJob_G1 = 4202032;
//0x00401F70 public: virtual int __thiscall zCEventMessage::IsJob(void)
const int zCEventMessage__IsJob_G2 = 4202352;
if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__IsJob_G1, zCEventMessage__IsJob_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMessage_IsDeleteable (var int eMsg) {
//0x00401E50 public: virtual int __thiscall zCEventMessage::IsDeleteable(void)
const int zCEventMessage__IsDeleteable_G1 = 4202064;
//0x00401FA0 public: virtual int __thiscall zCEventMessage::IsDeleteable(void)
const int zCEventMessage__IsDeleteable_G2 = 4202400;
if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__IsDeleteable_G1, zCEventMessage__IsDeleteable_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMessage_IsDeleted (var int eMsg) {
//0x00401E60 public: virtual int __thiscall zCEventMessage::IsDeleted(void)
const int zCEventMessage__IsDeleted_G1 = 4202080;
//0x00401FB0 public: virtual int __thiscall zCEventMessage::IsDeleted(void)
const int zCEventMessage__IsDeleted_G2 = 4202416;
if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__IsDeleted_G1, zCEventMessage__IsDeleted_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventMessage_GetCutsceneMode (var int eMsg) {
//0x00401E80 public: virtual int __thiscall zCEventMessage::GetCutsceneMode(void)
const int zCEventMessage__GetCutsceneMode_G1 = 4202112;
//0x00401FD0 public: virtual int __thiscall zCEventMessage::GetCutsceneMode(void)
const int zCEventMessage__GetCutsceneMode_G2 = 4202448;
if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__GetCutsceneMode_G1, zCEventMessage__GetCutsceneMode_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func string zCEventMessage_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x00401EA0 public: virtual class zSTRING __thiscall zCEventMessage::MD_GetSubTypeString(int)
const int zCEventMessage__MD_GetSubTypeString_G1 = 4202144;
//0x00401FF0 public: virtual class zSTRING __thiscall zCEventMessage::MD_GetSubTypeString(int)
const int zCEventMessage__MD_GetSubTypeString_G2 = 4202480;
if (!Hlp_Is_zCEventMessage (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (zCEventMessage__MD_GetSubTypeString_G1, zCEventMessage__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func void zCEventMessage_Delete (var int eMsg) {
//0x00401E40 public: virtual void __thiscall zCEventMessage::Delete(void)
const int zCEventMessage__Delete_G1 = 4202048;
//0x00401F90 public: virtual void __thiscall zCEventMessage::Delete(void)
const int zCEventMessage__Delete_G2 = 4202384;
if (!Hlp_Is_zCEventMessage (eMsg)) { return; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (zCEventMessage__Delete_G1, zCEventMessage__Delete_G2));
call = CALL_End();
};
};
/*
*
*
*
*/
func int zCEventManager_IsRunning (var int eMgr, var int eMsg) {
//0x006DE550 public: virtual int __thiscall zCEventManager::IsRunning(class zCEventMessage *)
const int zCEventManager__IsRunning_G1 = 7202128;
//0x007877E0 public: virtual int __thiscall zCEventManager::IsRunning(class zCEventMessage *)
const int zCEventManager__IsRunning_G2 = 7895008;
//This function loops through EM event list and checks if specified message is in the list
//It can be used to check if message is 'safe' (if it is in EM then it's kinda safe :) )
//Function Hlp_Is_zCEventMessage is reading pointer - if pointer is invalid we might crash (which happened to me as I used some EM manipulation functions incorrectly ...)
//Anyway it's counter-productive to check eMsg here --> thus only checking if eMsg is NULL
//if (!Hlp_Is_zCEventMessage (eMsg)) { return 0; };
if (!eMsg) { return 0; };
if (!Hlp_Is_zCEventManager (eMgr)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL_PtrParam (_@ (eMsg));
CALL__thiscall (_@ (eMgr), MEMINT_SwitchG1G2 (zCEventManager__IsRunning_G1, zCEventManager__IsRunning_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventManager_GetCutsceneMode (var int eMgr) {
//0x006DE2E0 public: virtual int __thiscall zCEventManager::GetCutsceneMode(void)
const int zCEventManager__GetCutsceneMode_G1 = 7201504;
//0x00787570 public: virtual int __thiscall zCEventManager::GetCutsceneMode(void)
const int zCEventManager__GetCutsceneMode_G2 = 7894384;
if (!Hlp_Is_zCEventManager (eMgr)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMgr), MEMINT_SwitchG1G2 (zCEventManager__GetCutsceneMode_G1, zCEventManager__GetCutsceneMode_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventManager_GetNumMessages (var int eMgr) {
//0x00452600 public: virtual int __thiscall zCEventManager::GetNumMessages(void)
const int zCEventManager__GetNumMessages_G1 = 4531712;
//0x00457430 public: virtual int __thiscall zCEventManager::GetNumMessages(void)
const int zCEventManager__GetNumMessages_G2 = 4551728;
if (!Hlp_Is_zCEventManager (eMgr)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMgr), MEMINT_SwitchG1G2 (zCEventManager__GetNumMessages_G1, zCEventManager__GetNumMessages_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func int zCEventManager_GetActiveMessage (var int eMgr) {
//0x006DE580 public: virtual class zCEventMessage * __thiscall zCEventManager::GetActiveMessage(void)
const int zCEventManager__GetActiveMessage_G1 = 7202176;
//0x00787810 public: virtual class zCEventMessage * __thiscall zCEventManager::GetActiveMessage(void)
const int zCEventManager__GetActiveMessage_G2 = 7895056;
if (!Hlp_Is_zCEventManager (eMgr)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMgr), MEMINT_SwitchG1G2 (zCEventManager__GetActiveMessage_G1, zCEventManager__GetActiveMessage_G2));
call = CALL_End();
};
return CALL_RetValAsPtr ();
};
func int zCEventManager_GetEventMessage (var int eMgr, var int index) {
//0x006DE9B0 public: virtual class zCEventMessage * __thiscall zCEventManager::GetEventMessage(int)
const int zCEventManager__GetEventMessage_G1 = 7203248;
//0x00787C40 public: virtual class zCEventMessage * __thiscall zCEventManager::GetEventMessage(int)
const int zCEventManager__GetEventMessage_G2 = 7896128;
if (!Hlp_Is_zCEventManager (eMgr)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL_IntParam (_@ (index));
CALL__thiscall (_@ (eMgr), MEMINT_SwitchG1G2 (zCEventManager__GetEventMessage_G1, zCEventManager__GetEventMessage_G2));
call = CALL_End();
};
return CALL_RetValAsPtr ();
};
//-->
func int oCMsgConversation_IsOverlay (var int eMsg) {
//0x006C3960 public: virtual int __thiscall oCMsgConversation::IsOverlay(void)
const int oCMsgConversation__IsOverlay_G1 = 7092576;
//0x0076AB00 public: virtual int __thiscall oCMsgConversation::IsOverlay(void)
const int oCMsgConversation__IsOverlay_G2 = 7777024;
if (!Hlp_Is_oCMsgConversation (eMsg)) { return 0; };
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall (_@ (eMsg), MEMINT_SwitchG1G2 (oCMsgConversation__IsOverlay_G1, oCMsgConversation__IsOverlay_G2));
call = CALL_End();
};
return CALL_RetValAsInt ();
};
func string oCMsgConversation_MD_GetSubTypeString (var int eMsg, var int subType) {
//0x006C39A0 public: virtual class zSTRING __thiscall oCMsgConversation::MD_GetSubTypeString(int)
const int oCMsgConversation__MD_GetSubTypeString_G1 = 7092640;
//0x0076AB60 public: virtual class zSTRING __thiscall oCMsgConversation::MD_GetSubTypeString(int)
const int oCMsgConversation__MD_GetSubTypeString_G2 = 7777120;
if (!Hlp_Is_oCMsgConversation (eMsg)) { return ""; };
CALL_RetValIszString();
CALL_IntParam (subType);
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgConversation__MD_GetSubTypeString_G1, oCMsgConversation__MD_GetSubTypeString_G2));
return CALL_RetValAszstring ();
};
func string oCMsgConversation_MD_GetVobRefName (var int eMsg) {
//0x006C3B80 public: virtual class zSTRING __thiscall oCMsgConversation::MD_GetVobRefName(void)
const int oCMsgConversation__MD_GetVobRefName_G1 = 7093120;
//0x0076AD60 public: virtual class zSTRING __thiscall oCMsgConversation::MD_GetVobRefName(void)
const int oCMsgConversation__MD_GetVobRefName_G2 = 7777632;
if (!Hlp_Is_oCMsgConversation (eMsg)) { return ""; };
CALL_RetValIszString();
CALL__thiscall (eMsg, MEMINT_SwitchG1G2 (oCMsgConversation__MD_GetVobRefName_G1, oCMsgConversation__MD_GetVobRefName_G2));
return CALL_RetValAszstring ();
};
func int zCVob_GetEM (var int vobPtr) {
//0x005D49B0 public: class zCEventManager * __fastcall zCVob::GetEM(int)
const int zCVob__GetEM_G1 = 6113712;
//0x005FFE10 public: class zCEventManager * __fastcall zCVob::GetEM(int)
const int zCVob__GetEM_G2 = 6290960;
if (!vobPtr) { return 0; };
//TODO: do we want to create EM by default?
const int dontCreate = 0; //FALSE
var int retVal; retVal = 0;
const int call = 0;
if (CALL_Begin(call)) {
CALL_PutRetValTo (_@ (retVal));
CALL__fastcall(_@(vobPtr), _@(dontCreate), MEMINT_SwitchG1G2 (zCVob__GetEM_G1, zCVob__GetEM_G2));
call = CALL_End();
};
return + retVal;
};
/*
*
*/
func void zCEventManager_OnTouch (var int eMgr, var int vobPtr) {
//0x006DE5D0 public: virtual void __thiscall zCEventManager::OnTouch(class zCVob *)
const int zCEventManager__OnTouch_G1 = 7202256;
//0x00787860 public: virtual void __thiscall zCEventManager::OnTouch(class zCVob *)
const int zCEventManager__OnTouch_G2 = 7895136;
if (!Hlp_Is_zCEventManager (eMgr)) { return; };
if (!vobPtr) { return; };
const int call = 0;
if (CALL_Begin(call)) {
CALL_PtrParam(_@(vobPtr));
CALL__thiscall(_@(eMgr), MEMINT_SwitchG1G2 (zCEventManager__OnTouch_G1, zCEventManager__OnTouch_G2));
call = CALL_End();
};
};
func void zCEventManager_OnUntouch (var int eMgr, var int vobPtr) {
//0x006DE690 public: virtual void __thiscall zCEventManager::OnUntouch(class zCVob *)
const int zCEventManager__OnUntouch_G1 = 7202448;
//0x00787920 public: virtual void __thiscall zCEventManager::OnUntouch(class zCVob *)