mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-04 16:55:56 +00:00
Document eye textures as an enum
to clarify for `EnMd_UpdateEyes`
This commit is contained in:
parent
cf0422d065
commit
91732239da
2 changed files with 11 additions and 2 deletions
|
@ -545,9 +545,9 @@ u8 EnMd_ShouldSpawn(EnMd* this, PlayState* play) {
|
|||
void EnMd_UpdateEyes(EnMd* this) {
|
||||
if (DECR(this->blinkTimer) == 0) {
|
||||
this->eyeIdx++;
|
||||
if (this->eyeIdx > 2) {
|
||||
if (this->eyeIdx > ENMD_EYE_CLOSED) {
|
||||
this->blinkTimer = Rand_S16Offset(30, 30);
|
||||
this->eyeIdx = 0;
|
||||
this->eyeIdx = ENMD_EYE_OPEN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,6 +27,15 @@ typedef enum EnMdLimb {
|
|||
ENMD_LIMB_MAX
|
||||
} EnMdLimb;
|
||||
|
||||
typedef enum EnMdEye {
|
||||
ENMD_EYE_OPEN,
|
||||
ENMD_EYE_HALF,
|
||||
ENMD_EYE_CLOSED,
|
||||
ENMD_EYE_ANGRY,
|
||||
ENMD_EYE_LOOKING_UP,
|
||||
ENMD_EYE_MAX
|
||||
} EnMdEye;
|
||||
|
||||
typedef void (*EnMdActionFunc)(struct EnMd*, PlayState*);
|
||||
|
||||
typedef struct EnMd {
|
||||
|
|
Loading…
Reference in a new issue