Implement ObjMure2_Update

This commit is contained in:
Nicholas Sturgeon
2023-02-05 13:13:06 -05:00
parent 19d65e745d
commit e872fdb129
2 changed files with 12 additions and 3 deletions
@@ -80,4 +80,12 @@ void func_809613B0(ObjMure2* this) {
#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_Obj_Mure2/func_80961490.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_Obj_Mure2/ObjMure2_Update.s")
void ObjMure2_Update(Actor* thisx, PlayState* play) {
ObjMure2* this = THIS;
if (play->csCtx.state == 0) {
this->unk_17C = 1.0f;
} else {
this->unk_17C = 4.0f;
}
this->actionFunc(this, play);
}
@@ -10,7 +10,8 @@ typedef void (*ObjMure2ActionFunc)(struct ObjMure2*, PlayState*);
typedef struct ObjMure2 {
/* 0x000 */ Actor actor;
/* 0x144 */ ObjMure2ActionFunc actionFunc;
/* 0x148 */ char unk_148[0x38];
} ObjMure2; // size = 0x180
/* 0x148 */ char pad_148[0x34]; /* maybe part of actionFunc[0xE]? */
/* 0x17C */ f32 unk_17C; /* inferred */
} ObjMure2; /* size = 0x180 */
#endif // Z_OBJ_MURE2_H