forked from OoTMM/OoTMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into PR-shadow-temple-mq-rework
- Loading branch information
Showing
118 changed files
with
1,210 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#ifndef Z_EN_S_GORO_H | ||
#define Z_EN_S_GORO_H | ||
|
||
#include <combo/actor.h> | ||
|
||
#define EN_S_GORO_GET_MAIN_TYPE(thisx) ((thisx)->params & 0xF) | ||
#define EN_S_GORO_GET_SWITCH_FLAG(thisx) (((thisx)->params & 0x7F0) >> 4) | ||
|
||
struct EnSGoro; | ||
|
||
typedef void (*EnSGoroActionFunc)(struct EnSGoro*, PlayState*); | ||
|
||
typedef struct EnSGoro { | ||
/* 0x000 */ Actor actor; | ||
/* 0x144 */ Actor* otherGoron; | ||
/* 0x148 */ SkelAnime skelAnime; | ||
/* 0x18C */ EnSGoroActionFunc actionFunc; | ||
/* 0x190 */ ColliderCylinder collider; | ||
/* 0x1DC */ u16 actionFlags; | ||
/* 0x1DE */ u16 bombbuyFlags; | ||
/* 0x1E0 */ char unk_1E0[0xC]; | ||
/* 0x1EC */ s16 eyeTexIndex; | ||
/* 0x1EE */ s16 eyeTimer; | ||
/* 0x1F0 */ s16 loseAttentionTimer; | ||
/* 0x1F4 */ s32 objectSlot; | ||
/* 0x1F8 */ Vec3s jointTable[18]; /* GORON_LIMB_MAX */ | ||
/* 0x264 */ Vec3s morphTable[18]; /* GORON_LIMB_MAX */ | ||
/* 0x2D0 */ f32 scaleFactor; | ||
/* 0x2D4 */ s16 headRotZ; | ||
/* 0x2D6 */ s16 headRotY; | ||
/* 0x2D8 */ s16 bodyRotZ; | ||
/* 0x2DA */ s16 bodyRotY; | ||
/* 0x2DC */ Vec3f headTranslate; | ||
/* 0x2E8 */ Vec3s headRotate; | ||
/* 0x2F0 */ Vec3f bodyTranslate; | ||
/* 0x2FC */ Vec3s bodyRotate; | ||
/* 0x302 */ char unk_302[2]; | ||
/* 0x304 */ u16 textId; | ||
/* 0x306 */ s16 snorePhase; | ||
/* 0x308 */ s32 animIndex; | ||
/* 0x30C */ s16 powderKegPrice; | ||
} EnSGoro; // size = 0x310 | ||
|
||
typedef enum EnSGoroType { | ||
/* 0x0 */ EN_S_GORO_TYPE_SHRINE_WINTER_A, | ||
/* 0x1 */ EN_S_GORO_TYPE_SHRINE_WINTER_B, | ||
/* 0x2 */ EN_S_GORO_TYPE_SHRINE_WINTER_C, | ||
/* 0x3 */ EN_S_GORO_TYPE_SHRINE_SPRING_A, | ||
/* 0x4 */ EN_S_GORO_TYPE_SHRINE_SPRING_B, | ||
/* 0x5 */ EN_S_GORO_TYPE_SHRINE_SPRING_C, | ||
/* 0x6 */ EN_S_GORO_TYPE_SHRINE_SPRING_D, | ||
/* 0x7 */ EN_S_GORO_TYPE_SHRINE_SPRING_E, | ||
/* 0x8 */ EN_S_GORO_TYPE_SHRINE_SPRING_F, | ||
/* 0x9 */ EN_S_GORO_TYPE_BOMBSHOP | ||
} EnSGoroType; | ||
|
||
#endif // Z_EN_S_GORO_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef COMBO_MM_Z_MSGEVENT_H | ||
#define COMBO_MM_Z_MSGEVENT_H | ||
|
||
#include <combo.h> | ||
|
||
typedef s32 (*MsgScriptCallback)(struct Actor*, struct PlayState*); | ||
typedef s32 (*MsgScriptCmdHandler)(struct Actor*, struct PlayState*, u8**, MsgScriptCallback, s32*); | ||
typedef u8 MsgScript; | ||
|
||
extern u8 sMsgScriptCmdSizes[51]; | ||
extern MsgScriptCmdHandler sMsgScriptCmdHandlers[51]; | ||
|
||
#define SCRIPT_PACK_16(h, l) (((h) << 8) | (l)) | ||
|
||
typedef struct { | ||
/* 0x0 */ u8 cmd; | ||
} MsgScriptCmdBase; | ||
|
||
typedef struct { | ||
/* 0x0 */ MsgScriptCmdBase base; | ||
/* 0x1 */ u8 offsetH; | ||
/* 0x2 */ u8 offsetL; | ||
} MsgScriptCmdCheckStrength3; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.