2022-10-06 10:38:13 +00:00
|
|
|
#ifndef _CGUNMOTION_HPP
|
|
|
|
#define _CGUNMOTION_HPP
|
|
|
|
|
|
|
|
#include "Kyoto/CObjectReference.hpp"
|
|
|
|
|
|
|
|
class CVector3f;
|
2022-10-06 20:34:27 +00:00
|
|
|
class CStateManager;
|
2022-10-06 10:38:13 +00:00
|
|
|
|
|
|
|
class CGunMotion {
|
|
|
|
public:
|
|
|
|
CGunMotion(CAssetId ancsId, const CVector3f& scale);
|
2022-10-06 11:06:55 +00:00
|
|
|
~CGunMotion();
|
2022-10-06 10:38:13 +00:00
|
|
|
|
2022-10-06 20:34:27 +00:00
|
|
|
bool PlayPasAnim(SamusGun::EAnimationState state, CStateManager& mgr, float angle, bool bigStrike);
|
|
|
|
void BasePosition(bool bigStrikeReset);
|
|
|
|
void ReturnToDefault(CStateManager& mgr, bool setState);
|
|
|
|
|
|
|
|
CModelData& GetModelData() { return x0_modelData; }
|
|
|
|
const CModelData& GetModelData() const { return x0_modelData; }
|
|
|
|
bool IsAnimPlaying() const { return xb8_24_animPlaying; }
|
|
|
|
|
2022-10-06 10:38:13 +00:00
|
|
|
private:
|
2022-10-06 20:34:27 +00:00
|
|
|
CModelData x0_modelData;
|
|
|
|
u8 x4c_pad[0x5C];
|
|
|
|
rstl::vector<CToken> xa8_anims;
|
|
|
|
bool xb8_24_animPlaying : 1;
|
2022-10-06 10:38:13 +00:00
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CGunMotion, 0xbc)
|
|
|
|
|
|
|
|
#endif // _CGUNMOTION_HPP
|