metaforce/Runtime/Character/CPASParmInfo.hpp

38 lines
912 B
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CPASPARMINFO_HPP__
#define __URDE_CPASPARMINFO_HPP__
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
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CPASPARMINFO_HPP__