mirror of
https://github.com/zeldaret/mm.git
synced 2026-09-05 10:27:31 -04:00
split headers z_en_item00.h, z_en_a_keep.h, z64draw.h (#1897)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user