1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-22 23:11:20 +00:00

Add names to all typedef'd structs, unions, and enums (#2028)

* Add names to all typedef'd structs, unions, and enums

* wtf vs code

* Use a better regex
This commit is contained in:
cadmic 2024-08-12 00:07:48 -07:00 committed by GitHub
parent 672728455d
commit e6bc4bd8cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
426 changed files with 1417 additions and 1417 deletions

View file

@ -29,7 +29,7 @@ void EnRd_Damaged(EnRd* this, PlayState* play);
void EnRd_Dead(EnRd* this, PlayState* play);
void EnRd_Stunned(EnRd* this, PlayState* play);
typedef enum {
typedef enum EnRdAction {
/* 0 */ REDEAD_ACTION_IDLE,
/* 1 */ REDEAD_ACTION_STUNNED,
/* 2 */ REDEAD_ACTION_WALK_TO_HOME,
@ -44,7 +44,7 @@ typedef enum {
/* 11 */ REDEAD_ACTION_RISE_FROM_COFFIN
} EnRdAction;
typedef enum {
typedef enum EnRdGrabState {
/* 0 */ REDEAD_GRAB_START,
/* 1 */ REDEAD_GRAB_INITIAL_DAMAGE,
/* 2 */ REDEAD_GRAB_ATTACK,
@ -84,7 +84,7 @@ static ColliderCylinderInit sCylinderInit = {
{ 20, 70, 0, { 0, 0, 0 } },
};
typedef enum {
typedef enum EnRdDamageEffect {
/* 0x0 */ REDEAD_DMGEFF_NONE, // Does not interact with the Gibdo/Redead at all
/* 0x1 */ REDEAD_DMGEFF_HOOKSHOT, // Stuns the Gibdo/Redead
/* 0x6 */ REDEAD_DMGEFF_ICE_MAGIC = 0x6, // Does not interact with the Gibdo/Redead at all

View file

@ -10,7 +10,7 @@ typedef void (*EnRdActionFunc)(struct EnRd*, PlayState*);
#define REDEAD_GET_FLAGS(thisx) (((thisx)->params & 0xFF00) >> 8)
typedef enum {
typedef enum RedeadGibdoLimb {
/* 0 */ REDEAD_GIBDO_LIMB_NONE,
/* 1 */ REDEAD_GIBDO_LIMB_ROOT,
/* 2 */ REDEAD_GIBDO_LIMB_LEFT_LEG_ROOT,
@ -40,7 +40,7 @@ typedef enum {
/* 26 */ REDEAD_GIBDO_LIMB_MAX
} RedeadGibdoLimb;
typedef enum {
typedef enum EnRdType {
/* -3 */ REDEAD_TYPE_GIBDO_RISING_OUT_OF_COFFIN = -3,
/* -2 */ REDEAD_TYPE_GIBDO,
/* -1 */ REDEAD_TYPE_DOES_NOT_MOURN,