2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 04:27:42 +00:00

CPuddleToadGamma and animation system fixes

This commit is contained in:
Jack Andersen
2019-06-20 20:02:56 -10:00
parent 9ccc4227cb
commit 77af3f0ebd
35 changed files with 309 additions and 203 deletions

View File

@@ -12,6 +12,12 @@ public:
Ready,
};
enum class EDoorOpenCondition {
NotReady,
Loading,
Ready
};
float x258_animLen;
float x25c_animTime = 0.f;
EDoorAnimType x260_doorAnimState = EDoorAnimType::Open;
@@ -45,7 +51,7 @@ public:
void ForceClosed(CStateManager&);
bool IsConnectedToArea(const CStateManager& mgr, TAreaId area);
void OpenDoor(TUniqueId, CStateManager&);
u32 GetDoorOpenCondition(CStateManager& mgr);
EDoorOpenCondition GetDoorOpenCondition(CStateManager& mgr);
void SetDoorAnimation(EDoorAnimType);
std::optional<zeus::CAABox> GetTouchBounds() const;
std::optional<zeus::CAABox> GetProjectileBounds() const;