summaryrefslogtreecommitdiff
path: root/include/f_op
diff options
context:
space:
mode:
authorTakaRikka <takarikka@outlook.com>2023-01-04 23:51:05 -0800
committerTakaRikka <takarikka@outlook.com>2023-01-04 23:51:05 -0800
commit5fa8a73aedbe407d85d72f5c15abeadcfa98cd85 (patch)
tree0ce5e510e3ac28022f314b1d23b71ae7badc466e /include/f_op
parentedcc309734ea8bfcc6592f9306b878b5108ec7b3 (diff)
d_a_obj_enemy_create OK
Diffstat (limited to 'include/f_op')
-rw-r--r--include/f_op/f_op_actor.h8
-rw-r--r--include/f_op/f_op_actor_mng.h4
2 files changed, 11 insertions, 1 deletions
diff --git a/include/f_op/f_op_actor.h b/include/f_op/f_op_actor.h
index ad64ba223b..fec05717df 100644
--- a/include/f_op/f_op_actor.h
+++ b/include/f_op/f_op_actor.h
@@ -7,9 +7,15 @@
#include "dolphin/mtx/mtx.h"
#include "f_pc/f_pc_leaf.h"
+struct actor_method_class {
+ /* 0x00 */ process_method_class mBase;
+ /* 0x10 */ process_method_func mpDrawFunc;
+ /* 0x14 */ u8 field_0x14[0xC]; // Likely padding
+};
+
struct actor_process_profile_definition {
/* 0x00 */ leaf_process_profile_definition mBase;
- /* 0x24 */ leafdraw_method_class* mSubMtd;
+ /* 0x24 */ actor_method_class* mSubMtd;
/* 0x28 */ int field_0x28; // mStatus
/* 0x2C */ u8 field_0x2c; // mActorType
/* 0x2D */ u8 field_0x2d; // mCullType
diff --git a/include/f_op/f_op_actor_mng.h b/include/f_op/f_op_actor_mng.h
index d183ae6dec..78c3c07c2d 100644
--- a/include/f_op/f_op_actor_mng.h
+++ b/include/f_op/f_op_actor_mng.h
@@ -186,6 +186,10 @@ inline cXyz& fopAcM_GetPosition_p(fopAc_ac_c* pActor) {
return pActor->current.pos;
}
+inline cXyz& fopAcM_GetPosition(fopAc_ac_c* pActor) {
+ return pActor->current.pos;
+}
+
inline cXyz& fopAcM_GetOldPosition_p(fopAc_ac_c* pActor) {
return pActor->next.pos;
}