2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-08-14 21:11:44 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2016-08-14 21:11:44 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2016-08-14 21:11:44 +00:00
|
|
|
|
2016-12-10 02:35:20 +00:00
|
|
|
class CAnimData;
|
|
|
|
class CStateManager;
|
2018-12-08 05:30:43 +00:00
|
|
|
class CGSComboFire {
|
|
|
|
float x0_delay = 0.f;
|
|
|
|
s32 x4_loopState = -1; // In, loop, out
|
|
|
|
s32 x8_cueAnimId = -1;
|
|
|
|
s32 xc_gunId = -1;
|
2020-04-20 04:57:50 +00:00
|
|
|
bool x10_24_over : 1 = false;
|
|
|
|
bool x10_25_idle : 1 = false;
|
2018-12-08 05:30:43 +00:00
|
|
|
|
2016-12-10 02:35:20 +00:00
|
|
|
public:
|
2020-04-20 04:57:50 +00:00
|
|
|
CGSComboFire() = default;
|
2020-04-11 04:49:02 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
bool IsComboOver() const { return x10_24_over; }
|
|
|
|
s32 GetLoopState() const { return x4_loopState; }
|
|
|
|
void SetLoopState(s32 l) { x4_loopState = l; }
|
|
|
|
void SetIdle(bool i) { x10_25_idle = i; }
|
|
|
|
s32 GetGunId() const { return xc_gunId; }
|
|
|
|
bool Update(CAnimData& data, float dt, CStateManager& mgr);
|
|
|
|
s32 SetAnim(CAnimData& data, s32 gunId, s32 loopState, CStateManager& mgr, float delay);
|
2016-08-14 21:11:44 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|