2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CANIMRES
|
|
|
|
#define _CANIMRES
|
2022-09-19 04:19:46 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "MetroidPrime/TGameTypes.hpp"
|
|
|
|
|
|
|
|
#include "Kyoto/IObjectStore.hpp"
|
|
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
|
|
|
|
class CAnimRes {
|
|
|
|
private:
|
|
|
|
CAssetId x0_ancsId;
|
|
|
|
int x4_charIdx;
|
|
|
|
CVector3f x8_scale;
|
|
|
|
bool x14_canLoop;
|
|
|
|
int x18_defaultAnim;
|
2022-10-06 08:53:35 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
// CAnimRes()
|
|
|
|
// : x4_charIdx(-1), x14_canLoop(false), x8_scale(????), x18_defaultAnim(-1) {}
|
|
|
|
|
2024-11-03 19:15:10 +00:00
|
|
|
CAnimRes(CAssetId ancs, const int charIdx, const CVector3f& scale, int defaultAnim, bool loop)
|
2022-10-09 05:13:17 +00:00
|
|
|
: x0_ancsId(ancs)
|
|
|
|
, x4_charIdx(charIdx)
|
|
|
|
, x8_scale(scale)
|
|
|
|
, x14_canLoop(loop)
|
|
|
|
, x18_defaultAnim(defaultAnim) {}
|
2022-10-11 15:30:39 +00:00
|
|
|
|
2024-09-26 05:54:05 +00:00
|
|
|
CAssetId GetId() const { return x0_ancsId; }
|
|
|
|
// or GetBodyType__8CAnimResCFv ?
|
|
|
|
int GetCharacterNodeId() const { return x4_charIdx; }
|
|
|
|
const CVector3f& GetScale() const { return x8_scale; }
|
|
|
|
int GetDefaultAnim() const { return x18_defaultAnim; }
|
|
|
|
bool CanLoop() const { return x14_canLoop; }
|
|
|
|
|
2022-11-26 13:51:04 +00:00
|
|
|
static const int kDefaultCharIdx;
|
2022-09-19 04:19:46 +00:00
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CAnimRes, 0x1c)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CANIMRES
|