1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-06 14:20:11 +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:
Roman971 2020-05-06 00:53:15 +02:00 committed by GitHub
parent f114df8929
commit 1425678d8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
477 changed files with 1817 additions and 792 deletions

View file

@ -4,10 +4,14 @@
#include <ultra64.h>
#include <global.h>
typedef struct {
struct ObjTimeblock;
typedef void (*ObjTimeblockActionFunc)(struct ObjTimeblock*, GlobalContext*);
typedef struct ObjTimeblock {
/* 0x0000 */ DynaPolyActor dyna;
/* 0x0164 */ char unk_164[0x4];
/* 0x0168 */ ActorFunc actionFunc;
/* 0x0168 */ ObjTimeblockActionFunc actionFunc;
/* 0x016C */ char unk_16C[0x10];
} ObjTimeblock; // size = 0x017C