Skip to content

Commit 4361019

Browse files
authored
d_a_npc_shop0 matching (#2374)
* d_a_npc_shop0 matching * d_a_npc_shop0 matching
1 parent 7f689a5 commit 4361019

File tree

3 files changed

+338
-531
lines changed

3 files changed

+338
-531
lines changed

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ def MatchingFor(*versions):
18001800
ActorRel(NonMatching, "d_a_npc_shad"),
18011801
ActorRel(NonMatching, "d_a_npc_shaman"),
18021802
ActorRel(NonMatching, "d_a_npc_shoe"),
1803-
ActorRel(NonMatching, "d_a_npc_shop0"),
1803+
ActorRel(MatchingFor("GZ2E01"), "d_a_npc_shop0"),
18041804
ActorRel(Equivalent, "d_a_npc_shop_maro"), # weak function order
18051805
ActorRel(NonMatching, "d_a_npc_sola"),
18061806
ActorRel(NonMatching, "d_a_npc_soldierA"),

include/d/actor/d_a_npc_shop0.h

Lines changed: 53 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,69 @@
1111
* @details
1212
*
1313
*/
14+
15+
class daNpc_Shop0_Param_c {
16+
public:
17+
/* 80AEBB14 */ virtual ~daNpc_Shop0_Param_c() {};
18+
19+
struct param {
20+
/* 0x0 */ u32 mParam1;
21+
/* 0x4 */ u32 mParam2;
22+
/* 0x8 */ u32 mParam3;
23+
};
24+
25+
static param const mParam;
26+
};
27+
28+
1429
class daNpc_Shop0_c : public fopAc_ac_c {
1530
public:
16-
/* 80AEA7F8 */ ~daNpc_Shop0_c();
17-
/* 80AEAA10 */ void create();
18-
/* 80AEAE9C */ void createHeap();
19-
/* 80AEAF8C */ void destroy();
20-
/* 80AEAFC0 */ void execute();
21-
/* 80AEB078 */ void draw();
22-
/* 80AEB190 */ void getResName();
31+
/* 80AEA7F8 */ virtual ~daNpc_Shop0_c();
32+
/* 80AEAA10 */ int create();
33+
/* 80AEAE9C */ int createHeap();
34+
/* 80AEAF8C */ int destroy();
35+
/* 80AEAFC0 */ int execute();
36+
/* 80AEB078 */ int draw();
37+
/* 80AEB190 */ char* getResName();
2338
/* 80AEB1A0 */ void getParam();
24-
/* 80AEB1C8 */ void getFlowNodeNum();
25-
/* 80AEB1D0 */ void isDelete();
26-
/* 80AEB22C */ void init();
27-
/* 80AEB32C */ void getTrnsfrmAnmP(int, char**);
28-
/* 80AEB3A8 */ void setBckAnm(J3DAnmTransform*, f32, int, int, int, bool);
29-
/* 80AEB45C */ void setCollision();
30-
/* 80AEB4C8 */ void checkEvent();
39+
/* 80AEB1C8 */ int getFlowNodeNum();
40+
/* 80AEB1D0 */ int isDelete();
41+
/* 80AEB22C */ int init();
42+
/* 80AEB32C */ J3DAnmTransform* getTrnsfrmAnmP(int, char**);
43+
/* 80AEB3A8 */ int setBckAnm(J3DAnmTransform*, f32, int, int, int, bool);
44+
/* 80AEB45C */ int setCollision();
45+
/* 80AEB4C8 */ int checkEvent();
3146
/* 80AEB5E8 */ void orderEvent();
3247
/* 80AEB634 */ void setMtx();
3348
/* 80AEB6DC */ void setRoomInf();
34-
/* 80AEB780 */ void cut_alert(int, int);
35-
/* 80AEB7F0 */ void chkProcess(int (daNpc_Shop0_c::*)(void*));
36-
/* 80AEB824 */ void setProcess(int (daNpc_Shop0_c::*)(void*), void*, int);
37-
/* 80AEB920 */ void wait(void*);
38-
/* 80AEB9BC */ void talk(void*);
49+
/* 80AEB780 */ int cut_alert(int, int);
50+
/* 80AEB7F0 */ int chkProcess(int (daNpc_Shop0_c::*)(void*));
51+
/* 80AEB824 */ int setProcess(int (daNpc_Shop0_c::*)(void*), void*, int);
52+
/* 80AEB920 */ int wait(void*);
53+
/* 80AEB9BC */ int talk(void*);
3954

40-
static u8 const mCylDat[68];
55+
static dCcD_SrcCyl const mCylDat;
4156

42-
private:
43-
/* 0x568 */ u8 field_0x568[0x9ec - 0x568];
57+
/* 0x56c */ u8 mParam;
58+
/* 0x570 */ mDoExt_bckAnm mBckAnm;
59+
/* 0x58c */ f32 mPlaySpeed;
60+
/* 0x590 */ u32 mFlowNodeNum;
61+
/* 0x594 */ dMsgFlow_c mMsgFlow;
62+
/* 0x5e0 */ request_of_phase_process_class mPhaseReq;
63+
/* 0x5e8 */ J3DModel* mpModel;
64+
/* 0x5ec */ f32 mGroundCross;
65+
/* 0x5f0 */ dBgS_ObjGndChk mGndChk;
66+
/* 0x644 */ daNpc_Shop0_Param_c* mpShopParam;
67+
/* 0x648 */ dBgS_AcchCir mAcchCir;
68+
/* 0x688 */ dBgS_ObjAcch mAcch;
69+
/* 0x860 */ dCcD_Stts mStts;
70+
/* 0x89c */ dCcD_Cyl mCyl;
71+
/* 0x9d8 */ s32 mMode;
72+
/* 0x9dc */ int (daNpc_Shop0_c::*mProcess)(void*);
73+
/* 0x9e8 */ s16 field_0x9e8;
74+
/* 0x9ea */ u8 field_0x9ea;
4475
};
4576

4677
STATIC_ASSERT(sizeof(daNpc_Shop0_c) == 0x9ec);
4778

48-
class daNpc_Shop0_Param_c {
49-
public:
50-
/* 80AEBB14 */ ~daNpc_Shop0_Param_c();
51-
52-
static u8 const mParam[12];
53-
};
54-
55-
5679
#endif /* D_A_NPC_SHOP0_H */

0 commit comments

Comments
 (0)