mirror of https://github.com/AxioDL/metaforce.git
CPAS*: Make constructors explicit
Prevents undesirable implicit constructions from occurring.
This commit is contained in:
parent
fe05c42be4
commit
d79b9d925e
|
@ -17,8 +17,8 @@ class CPASAnimState {
|
||||||
mutable std::vector<s32> x24_selectionCache;
|
mutable std::vector<s32> x24_selectionCache;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CPASAnimState(CInputStream& in);
|
explicit CPASAnimState(CInputStream& in);
|
||||||
CPASAnimState(int stateId);
|
explicit CPASAnimState(int stateId);
|
||||||
s32 GetStateId() const { return x0_id; }
|
s32 GetStateId() const { return x0_id; }
|
||||||
s32 GetNumAnims() const { return x14_anims.size(); }
|
s32 GetNumAnims() const { return x14_anims.size(); }
|
||||||
CPASAnimParm GetAnimParmData(s32, u32) const;
|
CPASAnimParm GetAnimParmData(s32, u32) const;
|
||||||
|
|
|
@ -18,7 +18,7 @@ class CPASDatabase {
|
||||||
void SetDefaultState(s32 state) { x10_defaultState = state; }
|
void SetDefaultState(s32 state) { x10_defaultState = state; }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CPASDatabase(CInputStream& in);
|
explicit CPASDatabase(CInputStream& in);
|
||||||
|
|
||||||
std::pair<float, s32> FindBestAnimation(const CPASAnimParmData&, s32) const;
|
std::pair<float, s32> FindBestAnimation(const CPASAnimParmData&, s32) const;
|
||||||
std::pair<float, s32> FindBestAnimation(const CPASAnimParmData&, CRandom16&, s32) const;
|
std::pair<float, s32> FindBestAnimation(const CPASAnimParmData&, CRandom16&, s32) const;
|
||||||
|
|
|
@ -16,7 +16,7 @@ public:
|
||||||
CPASAnimParm::UParmValue x10_max;
|
CPASAnimParm::UParmValue x10_max;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CPASParmInfo(CInputStream& in);
|
explicit CPASParmInfo(CInputStream& in);
|
||||||
CPASAnimParm::EParmType GetParameterType() const { return x0_type; }
|
CPASAnimParm::EParmType GetParameterType() const { return x0_type; }
|
||||||
EWeightFunction GetWeightFunction() const { return x4_weightFunction; }
|
EWeightFunction GetWeightFunction() const { return x4_weightFunction; }
|
||||||
float GetParameterWeight() const { return x8_weight; }
|
float GetParameterWeight() const { return x8_weight; }
|
||||||
|
|
Loading…
Reference in New Issue