2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-18 05:33:23 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CAnimationParameters
|
|
|
|
{
|
2017-11-15 04:12:13 +00:00
|
|
|
CAssetId x0_ancs;
|
2016-04-27 19:59:38 +00:00
|
|
|
u32 x4_charIdx = -1;
|
2016-04-25 05:46:28 +00:00
|
|
|
u32 x8_defaultAnim = -1;
|
2016-04-27 19:59:38 +00:00
|
|
|
public:
|
2016-04-25 05:46:28 +00:00
|
|
|
CAnimationParameters() = default;
|
2017-08-13 05:26:14 +00:00
|
|
|
CAnimationParameters(CAssetId ancs, u32 charIdx, u32 defaultAnim)
|
2016-04-18 05:33:23 +00:00
|
|
|
: x0_ancs(ancs), x4_charIdx(charIdx), x8_defaultAnim(defaultAnim) {}
|
2016-04-25 05:03:38 +00:00
|
|
|
CAnimationParameters(CInputStream& in)
|
|
|
|
: x0_ancs(in.readUint32Big()),
|
|
|
|
x4_charIdx(in.readUint32Big()),
|
|
|
|
x8_defaultAnim(in.readUint32Big()) {}
|
2016-04-27 19:59:38 +00:00
|
|
|
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId GetACSFile() const { return x0_ancs; }
|
2016-04-27 19:59:38 +00:00
|
|
|
u32 GetCharacter() const { return x4_charIdx; }
|
|
|
|
u32 GetInitialAnimation() const { return x8_defaultAnim; }
|
2016-06-21 04:15:30 +00:00
|
|
|
void SetCharacter(u32 charIdx) { x4_charIdx = charIdx; }
|
2016-04-18 05:33:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|