forked from shadowninja108/exlaunch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xlink2.h
1666 lines (1505 loc) · 42.7 KB
/
xlink2.h
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
struct xlink2::IUser;
struct xlink2::PropertyDefinition;
struct sead::hostio::Node;
struct xlink2::Locator;
struct sead::Viewport;
struct sead::DebugFontMgrJis1Nvn;
struct sead::DrawContext;
struct sead::Heap;
struct sead::Projection;
struct sead::FontBase;
struct sead::TextWriter;
struct aal::Emitter;
struct aal::Listener;
struct aal::Shape;
struct xlink2::Event;
struct xlink2::ResourceAccessor;
struct xlink2::UserResourceELink;
struct xlink2::System;
struct xlink2::ParamDefineTable;
struct xlink2::User;
struct xlink2::ModelAssetConnection;
struct xlink2::UserResource;
struct xlink2::AssetExecutor;
struct xlink2::ContainerBase;
struct xlink2::ErrorMgr;
struct xlink2::EditorBuffer;
struct xlink2::ResourceBuffer;
struct xlink2::TriggerCtrl;
struct xlink2::ILockProxy;
struct sead::UnitHeap;
struct sead::Camera;
struct xlink2::HoldMgr;
struct xlink2::SequenceContainer;
struct sead::SafeStringBase;
struct sead::BufferedSafeStringBase;
struct sead::Vector3f;
struct sead::Vector3;
struct xlink2::ResUserHeader;
struct sead::SafeStringBase_vtbl;
struct sead::Matrix34;
struct sead::IDisposer_vtbl;
struct sead::RuntimeTypeInfo::Interface;
struct sead::hostio::Node_vtbl;
struct sead::Camera_vtbl;
struct sead::FontBase_vtbl;
struct xlink2::IUser_vtbl;
struct xlink2::ILockProxy_vtbl;
struct xlink2::Event_vtbl;
struct xlink2::ResAssetCallTable;
struct xlink2::UserInstance_vtbl;
struct xlink2::ContainerBase_vtbl;
struct xlink2::System_vtbl;
struct xlink2::ResParam;
struct xlink2::ResourceAccessor_vtbl;
struct xlink2::UserResource_vtbl;
struct xlink2::UserResourceParam;
struct xlink2::CommonResourceParam;
struct xlink2::ResActionTrigger;
struct xlink2::UserInstanceParam;
struct xlink2::ResTriggerOverwriteParam;
struct xlink2::Locator_vtbl;
struct sead::FreeList::Node;
struct xlink2::ParamDefine;
struct xlink2::ResProperty;
struct xlink2::ResAction;
struct xlink2::ResActionSlot;
struct xlink2::ResCallTable;
struct xlink2::ResPropertyTrigger;
struct xlink2::ResAlwaysTrigger;
struct xlink2::ResRandomCallTable;
struct xlink2::CurvePointTable;
struct xlink2::ResAssetParamTable;
struct xlink2::TriggerCtrlParam;
struct xlink2::ModelTriggerConnection;
struct xlink2::AssetExecutor_vtbl;
struct aal::IUnifiable_vtbl;
struct aal::NamedObj_vtbl;
struct xlink2::ResCurveCallTable;
struct struct_v24;
struct xlink2::ParamDefineTableHeader;
struct struct_v8_4;
struct struct_v20;
struct struct_v10_2;
struct sead::Projection_vtbl;
struct xlink2::TriggerCtrl_vtbl;
/* 4471 */
struct sead::ListNode
{
sead::ListNode *mPrev;
sead::ListNode *mNext;
};
/* 14508 */
typedef int s32;
/* 4472 */
struct __attribute__((packed)) sead::ListImpl
{
sead::ListNode mStartEnd;
s32 mCount;
};
/* 15059 */
struct __cppobj sead::OffsetList : sead::ListImpl
{
s32 mIndex;
};
/* 5227 */
struct __attribute__((aligned(8))) xlink2::TriggerCtrlMgr
{
int field_0;
xlink2::TriggerCtrlParam *mParamsByResMode[2];
uint mActionTriggeredBitfield;
};
/* 16057 */
enum xlink2::UserInstance::State : __int8
{
xlink2::UserInstance::State_UsingEditor = 0x1,
xlink2::UserInstance::State_Sleeping = 0x2,
xlink2::UserInstance::State_4 = 0x4,
};
/* 16569 */
struct sead::BufferOfstruct_v10_2
{
s32 mCount;
struct_v10_2 *mBuffer;
};
/* 5212 */
struct __attribute__((aligned(8))) xlink2::UserInstance
{
xlink2::UserInstance_vtbl *__vftable /*VFT*/;
sead::OffsetList mEventList;
xlink2::UserInstanceParam *mParamsByResMode[2];
xlink2::User *mUser;
xlink2::IUser *field_38;
const sead::Matrix34 *mRootMtx;
char field_48;
const sead::Vector3 *mRootPos;
sead::Vector3 *mScale;
float field_60;
_QWORD mValueChangedBitfield;
float *mPropertyValueArray;
xlink2::TriggerCtrlMgr mTriggerCtrlMgr;
void *mUserData;
_BYTE gapA0[48];
xlink2::UserInstance::State mState;
_QWORD field_D8;
sead::BufferOfstruct_v10_2 field_E0;
};
/* 15135 */
enum xlink2::ResMode
{
xlink2_ResMode_Normal = 0x0,
xlink2_ResMode_Editor = 0x1,
};
/* 15112 */
struct /*VFT*/ __attribute__((aligned(8))) xlink2::UserInstance_vtbl
{
__int64 (__fastcall *makeDebugStringEvent)(xlink2::UserInstance *__hidden this, sead::BufferedSafeStringBase *, const sead::SafeStringBase *);
__int64 (__fastcall *dtor1)(xlink2::UserInstance *__hidden this);
__int64 (__fastcall *dtor2)(xlink2::UserInstance *__hidden this);
__int64 (__fastcall *getDefaultGroup)(const xlink2::UserInstance *__hidden this);
__int64 (__fastcall *onPostCalc_)(xlink2::UserInstance *__hidden this);
__int64 (__fastcall *onReset_)(xlink2::UserInstance *__hidden this);
__int64 (__fastcall *onDestroy_)(xlink2::UserInstance *__hidden this);
xlink2::UserInstanceParam *(__fastcall *allocInstanceParam_)(xlink2::UserInstance *__hidden this, sead::Heap *);
void (__fastcall *freeInstanceParam_)(xlink2::UserInstance *, xlink2::UserInstanceParam *, xlink2::ResMode);
void (__fastcall *onSetupInstanceParam_)(xlink2::UserInstance *, xlink2::ResMode, sead::Heap *);
void (__fastcall *initModelAssetConnection_)(xlink2::UserInstance *, xlink2::ResMode, const xlink2::ParamDefineTable *, sead::Heap *__struct_ptr);
bool (__fastcall *doEventActivatingCallback_)(xlink2::UserInstance *__hidden this, const xlink2::Locator *);
__int64 (__fastcall *doEventActivatedCallback_)(xlink2::UserInstance *__hidden this, const xlink2::Locator *, xlink2::Event *);
};
/* 15619 */
struct sead::BufferOfxlink2::ModelAssetConnection
{
s32 mCount;
xlink2::ModelAssetConnection *mBuffer;
};
/* 16065 */
struct sead::BufferOfstruct_v8_4
{
s32 mCount;
struct_v8_4 *mBuffer;
};
/* 4473 */
struct __attribute__((aligned(8))) sead::PtrArrayImpl
{
s32 mCount;
_DWORD mLength;
void **mPtr;
};
/* 16055 */
struct sead::BufferOfstruct_v24
{
s32 mCount;
struct_v24 *mBuffer;
};
/* 15136 */
struct __attribute__((aligned(8))) xlink2::UserInstanceParam
{
sead::BufferOfxlink2::ModelAssetConnection mModelAssetConnectionBuffer;
sead::BufferOfstruct_v8_4 mRandomHistory;
char field_20;
sead::PtrArrayImpl field_28;
sead::BufferOfstruct_v24 field_38;
};
/* 15265 */
typedef unsigned __int16 uint16_t;
/* 14516 */
typedef uint16_t u16;
/* 14515 */
typedef uint8_t u8;
/* 5228 */
struct __attribute__((aligned(8))) xlink2::User
{
_QWORD field_0;
_QWORD field_8;
const char *mName;
xlink2::UserResource *mUserResource;
sead::OffsetList mUserInstanceList;
_QWORD mHeap;
uint field_40;
u16 mPropertyDefinitionTableCount;
__int16 mActionSlotCount;
const xlink2::PropertyDefinition **mPropertyDefinitionTable;
const char **mActionSlot;
u8 field_58;
};
/* 5 */
struct xlink2::IUser
{
xlink2::IUser_vtbl *__vftable /*VFT*/;
};
/* 14537 */
struct sead::Matrix34
{
float m[3][4];
};
/* 14368 */
struct sead::Vector3
{
float x;
float y;
float z;
};
/* 16067 */
struct sead::BufferOfstruct_v20
{
s32 mCount;
struct_v20 *mBuffer;
};
/* 15319 */
struct sead::BufferOfxlink2::ModelTriggerConnection
{
s32 mCount;
xlink2::ModelTriggerConnection *mBuffer;
};
/* 15317 */
struct __attribute__((aligned(8))) xlink2::TriggerCtrlParam
{
sead::BufferOfstruct_v20 field_0;
sead::BufferOfxlink2::ModelTriggerConnection mPropertyTriggerConnections;
sead::BufferOfxlink2::ModelTriggerConnection mAlwaysTriggerConnections;
sead::PtrArrayImpl mActionTriggerArry;
sead::PtrArrayImpl mPropertyTriggerArry;
sead::PtrArrayImpl mPropertyTriggerCtrls;
xlink2::TriggerCtrl *field_60;
sead::PtrArrayImpl mAllTriggerCtrls;
};
/* 14306 */
struct __attribute__((aligned(8))) sead::SafeStringBase
{
sead::SafeStringBase_vtbl *__vftable /*VFT*/;
char *mPtr;
};
/* 14341 */
struct __cppobj __attribute__((packed)) __attribute__((aligned(4))) sead::BufferedSafeStringBase : sead::SafeStringBase
{
uint mLength;
};
/* 14462 */
struct __cppobj __attribute__((aligned(8))) sead::FixedSafeString128 : sead::BufferedSafeStringBase
{
char mData[128];
};
/* 16568 */
struct __attribute__((aligned(4))) struct_v10_2
{
sead::FixedSafeString128 mKeyName;
_BYTE mTriggerType;
int field_9C;
};
/* 8061 */
struct __attribute__((aligned(8))) sead::IDisposer
{
sead::IDisposer_vtbl *__vftable /*VFT*/;
sead::Heap *mHeap;
_DWORD size;
_QWORD mFreeSize;
};
/* 14361 */
enum sead::Heap::HeapDirection
{
HeapDirection_Reverse = 0x0,
HeapDirection_Forward = 0x1,
};
/* 14893 */
struct nn::os::ThreadType;
/* 15123 */
struct nn::os::detail::InternalCriticalSectionImplByHorizon
{
uint field_0;
};
/* 15125 */
struct nn::os::detail::InternalCriticalSection
{
nn::os::detail::InternalCriticalSectionImplByHorizon impl;
};
/* 15127 */
struct nn::os::detail::InternalCriticalSectionStorage
{
nn::os::detail::InternalCriticalSection storage;
};
/* 15128 */
union nn::os::MutexType::$B8F3897512A55A5D3977AA8F742F121D
{
int32_t _mutexImage[1];
nn::os::detail::InternalCriticalSectionStorage _mutex;
};
/* 15129 */
struct nn::os::MutexType
{
uint8_t _state;
bool _isRecursive;
int _lockLevel;
int _nestCount;
nn::os::ThreadType *_ownerThread;
union
{
int32_t _mutexImage[1];
nn::os::detail::InternalCriticalSectionStorage _mutex;
};
};
/* 7462 */
struct sead::CriticalSection
{
sead::IDisposer mDisposer;
nn::os::MutexType mMutex;
};
/* 4509 */
struct __cppobj sead::Heap : sead::IDisposer
{
sead::SafeStringBase mName;
u64 *thunk;
sead::ListNode *mStart;
size_t mSize;
sead::Heap *mParent;
sead::OffsetList mChildren;
sead::ListNode mListNode;
sead::OffsetList mDisposerList;
sead::Heap::HeapDirection mHeapDirection;
sead::CriticalSection mMutex;
__int16 mFlags;
u16 mTag;
char mAllocMode;
char mFindFreeBlockMode;
};
/* 5223 */
struct __attribute__((aligned(8))) xlink2::ParamDefineTable
{
_DWORD mNumAllParams;
int mNumTotalAssetParams;
_DWORD mNumTrigger;
xlink2::ParamDefine *mUserParams;
xlink2::ParamDefine *mAssetParams;
xlink2::ParamDefine *mTriggerParams;
int mStringTable;
int mNumUserAssetParams;
int mNumStandardAssetParams;
int mNumNonUserParams;
int mNumUserParams;
_DWORD mTotalSize;
bool mSetup;
};
/* 15140 */
enum xlink2::TriggerType
{
xlink2_TriggerType_Action = 0x0,
xlink2_TriggerType_Property = 0x1,
xlink2_TriggerType_Always = 0x2,
};
/* 460 */
struct __attribute__((aligned(8))) xlink2::Locator
{
xlink2::Locator_vtbl *__vftable /*VFT*/;
const xlink2::ResAssetCallTable *mResAssetCallTable;
char field_10;
xlink2::TriggerType mType;
};
/* 15145 */
struct __attribute__((aligned(8))) xlink2::BoneMtx
{
const sead::Matrix34 *field_0;
_BYTE field_8;
};
/* 5206 */
struct __attribute__((aligned(4))) xlink2::Event
{
xlink2::Event_vtbl *__vftable /*VFT*/;
_DWORD field_8;
void *field_10;
int field_18;
int field_1C;
uint mEventId;
xlink2::UserInstance *mUserInstance;
const xlink2::ResAssetCallTable *mResAssetCallTable;
xlink2::TriggerType mTriggerType;
xlink2::ResTriggerOverwriteParam *mResTriggerOverwriteParam;
xlink2::BoneMtx mBoneMtx;
xlink2::ContainerBase *mContainer;
sead::OffsetList mAliveAssetExecutorList;
sead::OffsetList mAssetExecutorList;
float field_90;
char mGroup;
};
/* 5231 */
struct __attribute__((aligned(8))) xlink2::ModelAssetConnection
{
_QWORD __vftable;
const sead::Matrix34 *mRootMtx;
char field_10;
};
/* 16064 */
struct struct_v8_4
{
int mOldIndex;
int mNewIndex;
};
/* 16054 */
struct __attribute__((aligned(8))) struct_v24
{
_DWORD field_0;
aal::Emitter *mEmitter;
_BYTE byte10;
};
/* 5232 */
struct __attribute__((aligned(8))) xlink2::UserResource
{
xlink2::UserResource_vtbl *__vftable /*VFT*/;
xlink2::User *mUser;
xlink2::ResMode mResMode;
xlink2::UserResourceParam *mParams[2];
};
/* 14396 */
struct __cppobj __attribute__((aligned(8))) sead::FixedSafeString64 : sead::BufferedSafeStringBase
{
char mData[64];
};
/* 16051 */
enum xlink2::PropertyType
{
xlink2_PropertyType_Enum = 0x0,
xlink2_PropertyType_S32 = 0x1,
xlink2_PropertyType_F32 = 0x2,
xlink2_PropertyType_End = 0x3,
};
/* 44 */
struct __attribute__((aligned(4))) xlink2::PropertyDefinition
{
__int64 __vftable;
sead::FixedSafeString64 mUserName;
xlink2::PropertyType mType;
char field_64;
};
/* 7530 */
struct xlink2::ToolConnectionContext;
/* 15106 */
struct xlink2::IUser_vtbl
{
sead::Matrix34 *(__fastcall *getBoneWorldMtxPtr)(xlink2::IUser *__hidden this, const char *);
char *(__fastcall *getActionSlotName)(xlink2::IUser *__hidden this, int);
sead::Camera *(__fastcall *getDebugDrawCamera)(xlink2::IUser *__hidden this);
__int64 (__fastcall *getDebugDrawProjection)(xlink2::IUser *__hidden this);
__int64 (__fastcall *_ZNK2Lp3Sys10XLinkIUser16getDebugUserNameEv)(xlink2::IUser **__hidden this);
__int64 (__fastcall *getUserInformation)(xlink2::IUser *__hidden this);
_QWORD (__cdecl *_ZNK2Lp3Sys10XLinkIUser20getReservedAssetNameEPN6xlink221ToolConnectionContextE)(xlink2::IUser **__hidden this, xlink2::ToolConnectionContext *);
int (__fastcall *getNumBone)(xlink2::IUser *__hidden this);
const char *(__fastcall *getBoneName)(xlink2::IUser *__hidden this, int);
__int64 (__fastcall *_ZNK2Lp3Sys10XLinkIUser12getNumActionEi)(xlink2::IUser **__hidden this, int);
__int64 (__fastcall *_ZNK2Lp3Sys10XLinkIUser13getActionNameEii)(xlink2::IUser **__hidden this, int, int);
__int64 (__fastcall *_ZN2Lp3Sys10XLinkIUser13captureScreenEPKc)(xlink2::IUser **__hidden this, const char *);
float (__fastcall *getSortKey)(xlink2::IUser *, const sead::Vector3 *);
__int64 (__fastcall *_ZNK2Lp3Sys10XLinkIUser21getAutoInputMtxSourceEv)(xlink2::IUser **__hidden this);
__int64 (__fastcall *_ZNK6xlink25IUser24getMtxCorrectingDrawBoneEv)(xlink2::IUser *__hidden this);
};
/* 16066 */
struct __attribute__((aligned(8))) struct_v20
{
void *field_0;
_BYTE field_8;
_QWORD field_10;
_DWORD field_18;
__attribute__((aligned(8))) __int16 field_20;
__int16 field_22;
};
/* 15139 */
struct __attribute__((aligned(8))) xlink2::Handle
{
xlink2::Event *mEvent;
_DWORD mEventId;
};
/* 15318 */
struct __attribute__((aligned(8))) xlink2::ModelTriggerConnection
{
xlink2::BoneMtx mRootMatrix;
xlink2::Handle mHandle;
__int16 mGlobalPropertyIdx;
char field_22;
char field_23;
};
/* 5245 */
struct __attribute__((aligned(8))) xlink2::TriggerCtrl
{
xlink2::TriggerCtrl_vtbl *__vftable /*VFT*/;
xlink2::UserInstance *mUserInstance;
sead::BufferOfxlink2::ModelTriggerConnection *mModelTriggerConnections;
};
/* 14501 */
struct /*VFT*/ sead::SafeStringBase_vtbl
{
void (__cdecl *dtor)(sead::SafeStringBase *);
void (__cdecl *dtor2)(sead::SafeStringBase *);
void (__cdecl *operatorEq)(sead::SafeStringBase *, sead::SafeStringBase *);
void (__thiscall *assureTerminationImpl_)(const sead::SafeStringBase *);
};
/* 14578 */
struct /*VFT*/ __attribute__((aligned(8))) sead::IDisposer_vtbl
{
void (__fastcall *dtor1)(sead::IDisposer *this);
void (__fastcall *dtor2)(sead::IDisposer *this);
};
/* 16047 */
enum xlink2::AssetParamType
{
xlink2_AssetParamType_Int = 0x0,
xlink2_AssetParamType_Float = 0x1,
xlink2_AssetParamType_Bool = 0x2,
xlink2_AssetParamType_String = 0x4,
xlink2_AssetParamType_5 = 0x5,
};
/* 15287 */
struct xlink2::ParamDefine
{
u32 mName;
xlink2::AssetParamType mType;
u32 mDefaultValue;
};
/* 15144 */
struct /*VFT*/ xlink2::Locator_vtbl
{
xlink2::Locator *(__fastcall *reset)(xlink2::Locator *result);
_QWORD (__cdecl *_ZN6xlink27Locator14setTriggerInfoENS_11TriggerTypeEPNS_24ResTriggerOverwriteParamENS_7BoneMtxE)(xlink2::Locator *__hidden this, xlink2::TriggerType, xlink2::ResTriggerOverwriteParam *, xlink2::BoneMtx);
xlink2::TriggerType (__fastcall *getTriggerType)(const xlink2::Locator *__hidden this);
xlink2::ResTriggerOverwriteParam *(__fastcall *getTriggerOverwriteParam)(const xlink2::Locator *__hidden this);
xlink2::BoneMtx (__fastcall *getOverwriteBoneMtx)(const xlink2::Locator *__hidden this);
};
/* 15111 */
struct __attribute__((aligned(4))) xlink2::ResAssetCallTable
{
uint mKeyNamePos;
__int16 mAssetId;
u16 mFlag;
int mDuration;
uint mParentIndex;
__int16 mEnumIndex;
char mIsSolved;
int mKeyNameHash;
unsigned int mParamStartPos;
uint mConditionPos;
};
/* 15110 */
struct /*VFT*/ xlink2::Event_vtbl
{
__int64 (__fastcall *dtor1)(xlink2::Event *__hidden this);
__int64 (__fastcall *dtor2)(xlink2::Event *__hidden this);
bool (__fastcall *initializeImpl_)(xlink2::Event *__hidden this);
__int64 (__fastcall *doFinalize_)(xlink2::Event *__hidden this);
__int64 (__fastcall *callEventCreateCallback_)(xlink2::Event *__hidden this);
__int64 (__fastcall *callEventDestroyCallback_)(xlink2::Event *__hidden this);
__int64 (__fastcall *fixDelayParam_)(xlink2::Event *__hidden this);
};
/* 15141 */
struct xlink2::ResTriggerOverwriteParam
{
u32 mMask;
u32 mReferences[];
};
/* 16717 */
union ContainerAssetExeuctorUnion
{
xlink2::ContainerBase *mContainer;
xlink2::AssetExecutor *mAssetExecutor;
};
/* 5240 */
struct __attribute__((packed)) __attribute__((aligned(4))) xlink2::ContainerBase
{
xlink2::ContainerBase_vtbl *__vftable /*VFT*/;
const xlink2::ResAssetCallTable *mResAssetCallTable;
xlink2::Event *mEvent;
ContainerAssetExeuctorUnion mCurrent;
xlink2::ContainerBase *mNextContainer;
int mDurationCountdown;
};
/* 5001 */
struct __attribute__((aligned(8))) aal::SoundParam
{
_QWORD __vftable;
float mVolume;
float mVolumeByDevice[1];
float mBusVolumeByDevice[1];
float field_14;
float field_18;
float field_1C;
float mPitch;
float mLfe;
float mLpf;
int mBiquadType;
float mBiquadValue;
int mAngle;
float mSpread;
};
/* 14610 */
typedef unsigned __int64 ulong;
/* 5098 */
struct __attribute__((aligned(8))) aal::SpatialCalculator::Setting
{
sead::Matrix34 *field_0;
const sead::Vector3 *mVelocity;
_QWORD mAttenuator;
float mDopplerFactor;
float mSoundSourceSize;
aal::Shape *mShape;
_WORD field_28;
ushort mListenerBitFlag;
ulong mUserParam;
};
/* 5104 */
struct __attribute__((aligned(8))) aal::SpatialSetting
{
_QWORD __vftable;
sead::Matrix34 mActorMtx;
sead::Vector3 mVelocity;
bool mPositioned;
bool mPositionFollow;
_BYTE field_46;
aal::SpatialCalculator::Setting mCalculator;
};
/* 4997 */
struct __attribute__((aligned(8))) aal::Emitter
{
_QWORD __vftable;
bool mInitialized;
aal::SoundParam mParam;
sead::OffsetList *mSoundSourceList;
sead::CriticalSection field_58;
_QWORD qword98;
_QWORD qwordA0;
aal::SpatialSetting mSpacialSetting;
_QWORD qword128;
_QWORD qword130;
int field_138;
char field_13C;
sead::SafeStringBase *mName;
};
/* 15117 */
struct /*VFT*/ xlink2::UserResource_vtbl
{
__int64 (__fastcall *field_0)(xlink2::UserResourceELink *__hidden this);
__int64 (__fastcall *_ZN6xlink217UserResourceELinkD0Ev)(xlink2::UserResource *__hidden this);
xlink2::ResourceAccessor *(__fastcall *getAccessor)(xlink2::UserResource *__hidden this);
xlink2::ResourceAccessor *(__fastcall *getAccessorPtr)(xlink2::UserResource *__hidden this);
xlink2::System *(__fastcall *getSystem)(xlink2::UserResource *__hidden this);
xlink2::UserResourceParam *(__fastcall *allocResourceParam_)(xlink2::UserResource *__hidden this, sead::Heap *);
void (__fastcall *freeResourceParam_)(xlink2::UserResource *, xlink2::UserResourceParam *);
__int64 (__fastcall *onSetupResourceParam_)(xlink2::UserResource *, xlink2::UserResourceParam *, const xlink2::ParamDefineTable *, sead::Heap *);
};
/* 15120 */
struct __attribute__((aligned(8))) xlink2::UserBinParam
{
xlink2::ResUserHeader *mResUserHeader;
uint *mLocalPropertyRefArry;
xlink2::ResParam *mUserParamArry;
u16 *mSortedAssetIdTable;
xlink2::ResAssetCallTable *mAssetCallTable;
_DWORD mContainerTableLower;
xlink2::ResActionSlot *mResActionSlotTable;
xlink2::ResAction *mActionTable;
const xlink2::ResActionTrigger *mActionTriggerTable;
xlink2::ResProperty *mPropertyTable;
xlink2::ResPropertyTrigger *mResPropertyTriggerTable;
xlink2::ResAlwaysTrigger *mResAlwaysTriggerTable;
};
/* 14941 */
typedef unsigned __int8 uchar;
/* 16059 */
struct sead::BufferOfuchar
{
s32 mCount;
uchar *mBuffer;
};
/* 15367 */
struct sead::BufferOfxlink2::ResCallTable
{
u32 mCount;
xlink2::ResCallTable *mBuffer;
};
/* 16058 */
struct sead::BufferOfBool
{
s32 mCount;
bool *mBuffer;
};
/* 15118 */
struct __attribute__((aligned(8))) xlink2::UserResourceParam
{
const xlink2::CommonResourceParam *mCommonResourceParam;
xlink2::UserBinParam mUserBinParam;
sead::BufferOfuchar mPropertyNameIndexToPropertyIndex;
sead::BufferOfxlink2::ResCallTable mCallTableArry;
sead::BufferOfBool mActionTriggerBools;
ulong mPropertyAssignedBitfield;
xlink2::ResourceAccessor *field_A0;
bool mSetup;
};
/* 7466 */
struct sead::Camera
{
sead::Camera_vtbl *__vftable /*VFT*/;
sead::Matrix34 mMatrix;
};
/* 16679 */
struct /*VFT*/ xlink2::TriggerCtrl_vtbl
{
void (__cdecl *calc)(xlink2::TriggerCtrl *);
void (__cdecl *dtor1)(xlink2::TriggerCtrl *);
void (__cdecl *dtor2)(xlink2::TriggerCtrl *);
};
/* 15113 */
struct /*VFT*/ xlink2::ContainerBase_vtbl
{
__int64 (__fastcall *dtor1)(xlink2::ContainerBase *__hidden this);
__int64 (__fastcall *dtor2)(xlink2::SequenceContainer *__hidden this);
int (__cdecl *initialize)(xlink2::ContainerBase *this, const xlink2::Event *, const xlink2::ResAssetCallTable *);
__int64 (__fastcall *destroy)(xlink2::ContainerBase *__hidden this);
bool (__fastcall *start)(xlink2::ContainerBase *__hidden this);
bool (__fastcall *calc)(xlink2::ContainerBase *__hidden this);
__int64 (__fastcall *fadeBySystem)(xlink2::ContainerBase *__hidden this);
__int64 (__fastcall *fade)(xlink2::ContainerBase *__hidden this, int);
__int64 (__fastcall *kill)(xlink2::ContainerBase *__hidden this);
bool (__fastcall *killOneTimeEvent)(xlink2::ContainerBase *__hidden this);
};
/* 5234 */
struct __attribute__((aligned(8))) xlink2::AssetExecutor
{
xlink2::AssetExecutor_vtbl *__vftable /*VFT*/;
xlink2::ResAssetCallTable *field_8;
__int64 field_10;
xlink2::Event *field_18;
xlink2::UserInstance *mUserInstance;
const xlink2::ResAssetCallTable *mAssetCallTable;
_DWORD field_30;
float field_34;
xlink2::ResTriggerOverwriteParam *mTriggerOverwriteParam;
xlink2::BoneMtx mBoneMtx;
};
/* 5073 */
struct __attribute__((aligned(8))) aal::NamedObj
{
aal::NamedObj_vtbl *__vftable /*VFT*/;
sead::SafeStringBase mName;
};
/* 5096 */
struct aal::IUnifiable
{
aal::IUnifiable_vtbl *__vftable /*VFT*/;
};
/* 15530 */
enum aal::ShapeParamBitfield : unsigned __int8
{
aal_ShapeParamBitfield_SetBasePositionByActor = 0x1,
aal_ShapeParamBitfield_RotateByActor = 0x2,
aal_ShapeParamBitfield_UseCameraMtxForAngle = 0x4,
};
/* 5135 */
struct __cppobj aal::Shape : aal::NamedObj
{
aal::IUnifiable mUnifiable;
char char20;
__attribute__((aligned(16))) _QWORD qword30;
_BYTE gap38[24];
_QWORD qword50;
_BYTE gap58[24];
_QWORD qword70;
_BYTE gap78[24];
_QWORD qword90;
__attribute__((aligned(16))) __int64 nodeThunk;
_QWORD qwordA8;
_QWORD qwordB0;
sead::Matrix34 field_B8;
sead::Vector3 mOffset;
aal::ShapeParamBitfield mTypeBitfield;
sead::OffsetList mSpacialCalcList;
sead::CriticalSection mMutex;
};
/* 5208 */
struct __attribute__((aligned(8))) xlink2::ResourceAccessor
{
xlink2::ResourceAccessor_vtbl *__vftable /*VFT*/;
xlink2::ResUserHeader *mResUserHeader;
xlink2::UserResource *mUserResource;
xlink2::System *mSystem;
};
/* 5207 */
struct __cppobj xlink2::ResourceAccessorELink : xlink2::ResourceAccessor
{
};
/* 5209 */
struct __cppobj xlink2::UserResourceELink : xlink2::UserResource
{
_BYTE field_28;
xlink2::ResourceAccessorELink mResourceAccessor;
};
/* 4567 */
struct __attribute__((aligned(4))) sead::Random
{
uint mCtx[4];
};
/* 5226 */
struct __attribute__((aligned(8))) xlink2::DebugOperationParam
{
_DWORD field_0;
float field_4;
float field_8;
_DWORD field_C;
_DWORD field_10;
_DWORD field_14;
_DWORD field_18;
_DWORD field_1C;
sead::FixedSafeString64 field_20;
sead::FixedSafeString64 field_78;
sead::FixedSafeString64 field_D0;
sead::FixedSafeString128 field_128;
sead::FixedSafeString128 field_1C0;
int field_258;
sead::FixedSafeString64 field_260;
int field_2B8;
__int16 field_2BC;
sead::FixedSafeString128 field_2C0;
};
/* 5216 */
struct __attribute__((aligned(8))) xlink2::System
{
xlink2::System_vtbl *__vftable /*VFT*/;
xlink2::ResourceBuffer *mResourceBuffer;
sead::OffsetList mUserList;
int field_28;
int mEventPoolNum;
_DWORD field_30;
_DWORD mCurrEventId;
_BYTE field_38;
uint mMaxGlobalPropertyValues;
const xlink2::PropertyDefinition **mGlobalPropertyDefinitions;
float *mGlobalPropertyValues;
ulong mGlobalPropertyValueUsedBitfield;
_BYTE field_58;
xlink2::ErrorMgr *mErrorMgr;
xlink2::HoldMgr *mHoldMgr;
_DWORD field_70;
bool mCallEnable;
sead::Heap *mUserHeap;
float field_80;
sead::PtrArrayImpl mGlobalPropertyTriggerUserList;
sead::Random mRnd;
sead::UnitHeap *mXLinkContainerHeap;
sead::UnitHeap *mXLinkAssetExecutorHeap;
sead::Heap *mPrimaryHeap;
xlink2::EditorBuffer *mEditorBuffer;
_DWORD mTick;
float dwordCC;
__int64 field_D0;
float field_D8;
int field_DC;
int field_E0;
int field_E4;
_QWORD field_E8;
_QWORD field_F0;
int field_F8;
xlink2::DebugOperationParam field_100;
xlink2::DebugOperationParam field_458;
char field_7B0;
int field_7B4;
int field_7B8;
__int64 field_7C0;
xlink2::UserInstance *mDrawTargetInstance;
char field_7D0;
};
/* 15119 */
struct __attribute__((aligned(8))) xlink2::CommonResourceParam
{