2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-08-14 14:11:44 -07:00
|
|
|
|
2019-09-22 14:52:05 -07:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2016-08-14 14:11:44 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2016-12-09 18:35:20 -08:00
|
|
|
class CAnimData;
|
|
|
|
class CStateManager;
|
2018-12-07 21:30:43 -08:00
|
|
|
class CGSFidget {
|
|
|
|
std::vector<CToken> x0_anims;
|
|
|
|
s32 x10_ = -1;
|
|
|
|
s32 x14_gunId = -1;
|
|
|
|
s32 x18_animSet = -1;
|
|
|
|
|
2016-12-09 18:35:20 -08:00
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
bool Update(CAnimData& data, float dt, CStateManager& mgr);
|
|
|
|
s32 SetAnim(CAnimData& data, s32 type, s32 gunId, s32 animSet, CStateManager& mgr);
|
|
|
|
void LoadAnimAsync(CAnimData& data, s32 type, s32 gunId, s32 animSet, CStateManager& mgr);
|
|
|
|
void UnLoadAnim();
|
|
|
|
bool IsAnimLoaded() const;
|
2016-08-14 14:11:44 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|