metaforce/Runtime/World/CAnimationParameters.hpp

26 lines
758 B
C++
Raw Permalink Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-18 05:33:23 +00:00
#include "Runtime/RetroTypes.hpp"
2016-04-18 05:33:23 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-12-08 05:30:43 +00:00
class CAnimationParameters {
CAssetId x0_ancs;
u32 x4_charIdx = -1;
u32 x8_defaultAnim = -1;
2016-04-18 05:33:23 +00:00
public:
2018-12-08 05:30:43 +00:00
CAnimationParameters() = default;
CAnimationParameters(CAssetId ancs, u32 charIdx, u32 defaultAnim)
: x0_ancs(ancs), x4_charIdx(charIdx), x8_defaultAnim(defaultAnim) {}
explicit CAnimationParameters(CInputStream& in)
2018-12-08 05:30:43 +00:00
: x0_ancs(in.readUint32Big()), x4_charIdx(in.readUint32Big()), x8_defaultAnim(in.readUint32Big()) {}
2018-12-08 05:30:43 +00:00
CAssetId GetACSFile() const { return x0_ancs; }
u32 GetCharacter() const { return x4_charIdx; }
u32 GetInitialAnimation() const { return x8_defaultAnim; }
void SetCharacter(u32 charIdx) { x4_charIdx = charIdx; }
2016-04-18 05:33:23 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce