mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-06 22:30:15 +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
|
@ -15,7 +15,6 @@ void BgIngate_Destroy(Actor* thisx, GlobalContext* globalCtx);
|
|||
void BgIngate_Update(Actor* thisx, GlobalContext* globalCtx);
|
||||
void BgIngate_Draw(Actor* thisx, GlobalContext* globalCtx);
|
||||
|
||||
void BgIngate_SetupAction(BgIngate* this, ActorFunc actionFunc);
|
||||
void func_80892890(BgIngate* this, GlobalContext* globalCtx);
|
||||
void func_80892990(BgIngate* this, GlobalContext* globalCtx);
|
||||
|
||||
|
|
|
@ -4,9 +4,13 @@
|
|||
#include <ultra64.h>
|
||||
#include <global.h>
|
||||
|
||||
typedef struct {
|
||||
struct BgIngate;
|
||||
|
||||
typedef void (*BgIngateActionFunc)(struct BgIngate*, GlobalContext*);
|
||||
|
||||
typedef struct BgIngate {
|
||||
/* 0x0000 */ DynaPolyActor dyna;
|
||||
/* 0x0164 */ ActorFunc actionFunc;
|
||||
/* 0x0164 */ BgIngateActionFunc actionFunc;
|
||||
} BgIngate; // size = 0x0168
|
||||
|
||||
extern const ActorInit Bg_Ingate_InitVars;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue