split headers z_en_item00.h, z_en_a_keep.h, z64draw.h (#1897)

This commit is contained in:
mzxrules
2026-08-30 09:56:09 -04:00
committed by GitHub
parent ff5b97216d
commit 49afa18da0
97 changed files with 206 additions and 90 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef Z_EN_A_KEEP_H
#define Z_EN_A_KEEP_H
#include "z64actor.h"
#include "z64collision_check.h"
struct EnAObj;
struct PlayState;
typedef void (*EnAObjActionFunc)(struct EnAObj*, struct PlayState*);
typedef struct EnAObj {
/* 0x000 */ Actor actor;
/* 0x144 */ EnAObjActionFunc actionFunc;
/* 0x148 */ ColliderCylinder collision;
} EnAObj; // size = 0x194
typedef enum {
/* 0 */ AOBJ_SIGNPOST_OBLONG,
/* 1 */ AOBJ_SIGNPOST_ARROW
} AObjType;
#define AOBJ_GET_TEXTID(thisx) ((((thisx)->params >> 8) & 0xFF) | 0x300)
#define AOBJ_GET_TYPE(thisx) (((thisx)->params & 0xFF) - 9)
#define AOBJ_PARAMS(textId, type) ((((textId - 0x300) & 0xFF) << 8) | (type + 9))
#endif