mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 11:54:39 +00:00
Reduce dependencies on global.h (10) (#2490)
* reduce z64.h size * fix z_cheap_proc.inc.c * ,bss * remove temp delcaration
This commit is contained in:
parent
2b30c61a26
commit
cf1a39c26f
116 changed files with 663 additions and 308 deletions
41
include/z_en_a_obj.h
Normal file
41
include/z_en_a_obj.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
#ifndef Z_EN_A_OBJ_H
|
||||
#define Z_EN_A_OBJ_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "z64actor.h"
|
||||
|
||||
// Only A_OBJ_SIGNPOST_OBLONG and A_OBJ_SIGNPOST_ARROW are used in room files.
|
||||
typedef enum AObjType {
|
||||
/* 0x00 */ A_OBJ_BLOCK_SMALL,
|
||||
/* 0x01 */ A_OBJ_BLOCK_LARGE,
|
||||
/* 0x02 */ A_OBJ_BLOCK_HUGE,
|
||||
/* 0x03 */ A_OBJ_BLOCK_SMALL_ROT,
|
||||
/* 0x04 */ A_OBJ_BLOCK_LARGE_ROT,
|
||||
/* 0x05 */ A_OBJ_CUBE_SMALL,
|
||||
/* 0x06 */ A_OBJ_UNKNOWN_6,
|
||||
/* 0x07 */ A_OBJ_GRASS_CLUMP,
|
||||
/* 0x08 */ A_OBJ_TREE_STUMP,
|
||||
/* 0x09 */ A_OBJ_SIGNPOST_OBLONG,
|
||||
/* 0x0A */ A_OBJ_SIGNPOST_ARROW,
|
||||
/* 0x0B */ A_OBJ_BOULDER_FRAGMENT,
|
||||
/* 0x0C */ A_OBJ_MAX
|
||||
} AObjType;
|
||||
|
||||
struct EnAObj;
|
||||
|
||||
typedef void (*EnAObjActionFunc)(struct EnAObj*, struct PlayState*);
|
||||
|
||||
typedef struct EnAObj {
|
||||
/* 0x000 */ DynaPolyActor dyna;
|
||||
/* 0x164 */ EnAObjActionFunc actionFunc;
|
||||
/* 0x168 */ s32 rotateWaitTimer;
|
||||
/* 0x16C */ s16 textId;
|
||||
/* 0x16E */ s16 rotateState;
|
||||
/* 0x170 */ s16 rotateForTimer;
|
||||
/* 0x172 */ s16 rotSpeedY;
|
||||
/* 0x174 */ s16 rotSpeedX;
|
||||
/* 0x178 */ f32 focusYoffset;
|
||||
/* 0x17C */ ColliderCylinder collider;
|
||||
} EnAObj; // size = 0x1C8
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue