metaforce/Runtime/Character/CPASParmInfo.hpp

36 lines
821 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-10 04:49:02 +00:00
#include "IOStreams.hpp"
#include "CPASAnimParm.hpp"
namespace urde
{
class CPASParmInfo
{
2016-08-21 05:47:47 +00:00
public:
enum class EWeightFunction
{
ExactMatch,
PercentError,
AngularPercent,
NoWeight
2016-08-21 05:47:47 +00:00
};
2016-04-10 04:49:02 +00:00
CPASAnimParm::EParmType x0_type;
2016-08-21 05:47:47 +00:00
EWeightFunction x4_weightFunction;
float x8_weight;
CPASAnimParm::UParmValue xc_min;
CPASAnimParm::UParmValue x10_max;
2016-04-10 04:49:02 +00:00
public:
CPASParmInfo(CInputStream& in);
2016-08-21 05:47:47 +00:00
CPASAnimParm::EParmType GetParameterType() const {return x0_type;}
EWeightFunction GetWeightFunction() const { return x4_weightFunction; }
float GetParameterWeight() const { return x8_weight; }
CPASAnimParm::UParmValue GetWeightMinValue() const { return xc_min; }
CPASAnimParm::UParmValue GetWeightMaxValue() const { return x10_max; }
2016-04-10 04:49:02 +00:00
};
}