2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 21:51:22 +00:00
metaforce/Runtime/Character/CPASParmInfo.hpp
Lioncash 718d8d5d6f CPASParmInfo: Make data members private
These aren't used outside of the class, we only need to make
EWeightFunction public.
2020-02-28 05:00:16 -05:00

29 lines
821 B
C++

#pragma once
#include "Runtime/IOStreams.hpp"
#include "Runtime/Character/CPASAnimParm.hpp"
namespace urde {
class CPASParmInfo {
public:
enum class EWeightFunction { ExactMatch, PercentError, AngularPercent, NoWeight };
private:
CPASAnimParm::EParmType x0_type;
EWeightFunction x4_weightFunction;
float x8_weight;
CPASAnimParm::UParmValue xc_min;
CPASAnimParm::UParmValue x10_max;
public:
explicit CPASParmInfo(CInputStream& in);
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; }
};
} // namespace urde