1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-08 07:20:16 +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,7 +4,11 @@
#include <ultra64.h>
#include <global.h>
typedef struct {
struct EnDs;
typedef void (*EnDsActionFunc)(struct EnDs*, GlobalContext*);
typedef struct EnDs {
/* 0x0000 */ Actor actor;
/* 0x014C */ SkelAnime skelAnime;
/* 0x0190 */ Vec3s limbDrawTable;
@ -16,7 +20,7 @@ typedef struct {
/* 0x01E4 */ float unk_1E4;
/* 0x01E8 */ u16 unk_1E8;
/* 0x01EA */ u16 brewTimer;
/* 0x01EC */ ActorFunc actionFunc;
/* 0x01EC */ EnDsActionFunc actionFunc;
} EnDs; // size = 0x01F0
extern const ActorInit En_Ds_InitVars;