mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-08-13 17:03:47 -04:00
39cc86c260
subrepo: subdir: "soh" merged: "ba904bbd0" upstream: origin: "https://github.com/HarbourMasters/soh.git" branch: "master" commit: "ba904bbd0" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
39 lines
870 B
C
39 lines
870 B
C
#ifndef Z_EN_HONOTRAP_H
|
|
#define Z_EN_HONOTRAP_H
|
|
|
|
#include "ultra64.h"
|
|
#include "global.h"
|
|
|
|
struct EnHonotrap;
|
|
|
|
typedef void (*EnHonotrapActionFunc)(struct EnHonotrap*, GlobalContext*);
|
|
|
|
typedef union {
|
|
struct {
|
|
ColliderTris tris;
|
|
ColliderTrisElement elements[2];
|
|
};
|
|
ColliderCylinder cyl;
|
|
} EnHonotrapCollider; // size = 0xD8
|
|
|
|
typedef struct EnHonotrap {
|
|
/* 0x0000 */ Actor actor;
|
|
/* 0x014C */ EnHonotrapActionFunc actionFunc;
|
|
/* 0x0150 */ EnHonotrapCollider collider;
|
|
/* 0x0228 */ s16 timer;
|
|
/* 0x022A */ s16 eyeState;
|
|
/* 0x022C */ Vec3f targetPos;
|
|
/* 0x0238 */ f32 speedMod;
|
|
/* 0x023C */ s16 bobPhase;
|
|
/* 0x023E */ s16 flameScroll;
|
|
/* 0x0240 */ u8 colChkFlags;
|
|
} EnHonotrap; // size = 0x0244
|
|
|
|
typedef enum {
|
|
HONOTRAP_EYE,
|
|
HONOTRAP_FLAME_MOVE,
|
|
HONOTRAP_FLAME_DROP
|
|
} EnHonotrapType;
|
|
|
|
#endif
|