metaforce/Runtime/Character/CPASAnimParmData.hpp

31 lines
1.3 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include "Runtime/RetroTypes.hpp"
#include "Runtime/rstl.hpp"
2020-04-22 09:08:02 +00:00
#include "Runtime/Character/CharacterCommon.hpp"
#include "Runtime/Character/CPASAnimParm.hpp"
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-12-08 05:30:43 +00:00
class CPASAnimParmData {
2020-04-22 09:08:02 +00:00
pas::EAnimationState x0_stateId;
2018-12-08 05:30:43 +00:00
rstl::reserved_vector<CPASAnimParm, 8> x4_parms;
public:
2018-12-08 05:30:43 +00:00
CPASAnimParmData() = default;
2016-05-21 03:02:09 +00:00
2020-04-22 09:08:02 +00:00
explicit CPASAnimParmData(pas::EAnimationState stateId, const CPASAnimParm& parm1 = CPASAnimParm::NoParameter(),
const CPASAnimParm& parm2 = CPASAnimParm::NoParameter(),
const CPASAnimParm& parm3 = CPASAnimParm::NoParameter(),
const CPASAnimParm& parm4 = CPASAnimParm::NoParameter(),
const CPASAnimParm& parm5 = CPASAnimParm::NoParameter(),
const CPASAnimParm& parm6 = CPASAnimParm::NoParameter(),
const CPASAnimParm& parm7 = CPASAnimParm::NoParameter(),
const CPASAnimParm& parm8 = CPASAnimParm::NoParameter());
2020-04-22 09:08:02 +00:00
pas::EAnimationState GetStateId() const { return x0_stateId; }
2018-12-08 05:30:43 +00:00
const rstl::reserved_vector<CPASAnimParm, 8>& GetAnimParmData() const { return x4_parms; }
2020-04-22 09:08:02 +00:00
static auto NoParameters(pas::EAnimationState stateId) { return CPASAnimParmData(stateId); }
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce