summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2025-03-08 02:01:15 +0200
committerGitHub <noreply@github.com>2025-03-07 16:01:15 -0800
commit0d3b4bf9de969dced719fb6e44894a0f7cdde593 (patch)
tree019c329e864585a2ca9727a9fc166cc94afd2e3a /include
parent0f141c2a9ccf9b447fa7765c9b279685bdafdd60 (diff)
A little work on daObjMasterSword_c (#2316)
Diffstat (limited to 'include')
-rw-r--r--include/d/actor/d_a_obj_master_sword.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/d/actor/d_a_obj_master_sword.h b/include/d/actor/d_a_obj_master_sword.h
index 8321d71336..26158795d0 100644
--- a/include/d/actor/d_a_obj_master_sword.h
+++ b/include/d/actor/d_a_obj_master_sword.h
@@ -7,6 +7,10 @@
class daObjMasterSword_c;
typedef void (daObjMasterSword_c::*actionFunc)();
+struct daObjMasterSword_Attr_c {
+ f32 field_0x0;
+};
+
/**
* @ingroup actors-objects
* @class daObjMasterSword_c
@@ -38,14 +42,13 @@ public:
inline void callExecute();
inline int execute();
- f32 attr() const { return mAttr; }
+ f32 attr() const { return mAttr.field_0x0; }
u8 getEventID() { return (fopAcM_GetParam(this) >> 0x10) & 0xFF; }
u16 getFlagNo() { return fopAcM_GetParam(this) & 0xFFFF; }
- static f32 const mAttr;
- // static actionFunc ActionTable[];
- static u8 ActionTable[24];
+ static daObjMasterSword_Attr_c const mAttr;
+ static actionFunc ActionTable[];
private:
/* 0x568 */ J3DModel* mpModel;