mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 15:30:14 +00:00
More actor cleanup Part 3 (#118)
* Add custom types for actor specific functions (like actions) * Add a forward struct declaration for all other actors
This commit is contained in:
parent
f114df8929
commit
1425678d8a
477 changed files with 1817 additions and 792 deletions
|
@ -14,7 +14,6 @@ void BgBreakwall_Init(Actor* thisx, GlobalContext* globalCtx);
|
|||
void BgBreakwall_Destroy(Actor* thisx, GlobalContext* globalCtx);
|
||||
void BgBreakwall_Update(Actor* thisx, GlobalContext* globalCtx);
|
||||
|
||||
void BgBreakwall_SetupAction(BgBreakwall* this, ActorFunc actionFunc);
|
||||
void func_80870290(BgBreakwall* this, GlobalContext* globalCtx);
|
||||
void func_80870394(BgBreakwall* this, GlobalContext* globalCtx);
|
||||
void func_80870564(BgBreakwall* this, GlobalContext* globalCtx);
|
||||
|
|
|
@ -4,10 +4,14 @@
|
|||
#include <ultra64.h>
|
||||
#include <global.h>
|
||||
|
||||
typedef struct {
|
||||
struct BgBreakwall;
|
||||
|
||||
typedef void (*BgBreakwallActionFunc)(struct BgBreakwall*, GlobalContext*);
|
||||
|
||||
typedef struct BgBreakwall {
|
||||
/* 0x0000 */ DynaPolyActor dyna;
|
||||
/* 0x0164 */ char unk_164[0x88];
|
||||
/* 0x01EC */ ActorFunc actionFunc;
|
||||
/* 0x01EC */ BgBreakwallActionFunc actionFunc;
|
||||
} BgBreakwall; // size = 0x01F0
|
||||
|
||||
extern const ActorInit Bg_Breakwall_InitVars;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue