2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +00:00

New code style refactor

This commit is contained in:
Jack Andersen
2018-12-07 19:30:43 -10:00
parent 41ae32be31
commit 636c82a568
1451 changed files with 171430 additions and 203303 deletions

View File

@@ -3,33 +3,25 @@
#include "IOStreams.hpp"
#include "CPASAnimParm.hpp"
namespace urde
{
namespace urde {
class CPASParmInfo
{
class CPASParmInfo {
public:
enum class EWeightFunction
{
ExactMatch,
PercentError,
AngularPercent,
NoWeight
};
enum class EWeightFunction { ExactMatch, PercentError, AngularPercent, NoWeight };
CPASAnimParm::EParmType x0_type;
EWeightFunction x4_weightFunction;
float x8_weight;
CPASAnimParm::UParmValue xc_min;
CPASAnimParm::UParmValue x10_max;
CPASAnimParm::EParmType x0_type;
EWeightFunction x4_weightFunction;
float x8_weight;
CPASAnimParm::UParmValue xc_min;
CPASAnimParm::UParmValue x10_max;
public:
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; }
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