metaforce/Runtime/Character/CPASAnimParmData.hpp

39 lines
1.4 KiB
C++
Raw Normal View History

#ifndef CPASANIMPARMDATA_HPP
#define CPASANIMPARMDATA_HPP
#include "RetroTypes.hpp"
#include "CPASAnimParm.hpp"
namespace urde
{
class CPASAnimParmData
{
s32 x0_stateId;
rstl::reserved_vector<CPASAnimParm, 8> x4_parms;
public:
2017-07-06 21:06:56 +00:00
CPASAnimParmData() = default;
2016-05-21 03:02:09 +00:00
2017-07-10 04:55:51 +00:00
CPASAnimParmData(s32 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());
2017-07-06 21:06:56 +00:00
s32 GetStateId() const { return x0_stateId; }
const rstl::reserved_vector<CPASAnimParm, 8>& GetAnimParmData() const { return x4_parms; }
static inline CPASAnimParmData NoParameters(s32 stateId)
{
return {stateId, CPASAnimParm::NoParameter(), CPASAnimParm::NoParameter(), CPASAnimParm::NoParameter(),
CPASAnimParm::NoParameter(), CPASAnimParm::NoParameter(), CPASAnimParm::NoParameter(),
CPASAnimParm::NoParameter(), CPASAnimParm::NoParameter()};
}
};
}
#endif // CPASANIMPARMDATA_HPP