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

Initial CIkChain implementation

This commit is contained in:
2017-01-07 19:36:24 -08:00
parent ef43c3319b
commit bf91bdc332
9 changed files with 122 additions and 12 deletions

View File

@@ -18,8 +18,8 @@ public:
float xc_scale;
std::experimental::optional<zeus::CVector3f> x10_scaleVec;
public:
const TLockedToken<CCharLayoutInfo>& GetCharLayoutInfo() const {return x0_layoutToken;}
float GetScale() const {return xc_scale;}
const TLockedToken<CCharLayoutInfo>& ScaledLayout() const {return x0_layoutToken;}
float GlobalScale() const {return xc_scale;}
const std::experimental::optional<zeus::CVector3f>& GetScaleVec() const {return x10_scaleVec;}
};
private:
@@ -33,6 +33,13 @@ public:
GetScaledLayoutDescription() const {return xc_scaled;}
const TLockedToken<CCharLayoutInfo>& GetCharLayoutInfo() const {return x0_layoutToken;}
bool UsesScale() const { return bool(xc_scaled); }
const TLockedToken<CCharLayoutInfo>& ScaledLayout() const
{
if (UsesScale())
return xc_scaled->ScaledLayout();
return x0_layoutToken;
}
};
}