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

Initial CPatterned imps

This commit is contained in:
2018-09-07 16:51:07 -07:00
parent 95fbcf914c
commit ee97ede3fe
11 changed files with 299 additions and 22 deletions

View File

@@ -158,6 +158,31 @@ public:
void SetScale(const zeus::CVector3f& scale) { x0_scale = scale; }
bool HasAnimData() const { return x10_animData != nullptr; }
bool HasNormalModel() const { return x1c_normalModel; }
bool HasModel(EWhichModel which)
{
if (x10_animData)
{
switch(which)
{
case EWhichModel::Normal: return true;
case EWhichModel::XRay: return x10_animData->GetXRayModel().operator bool();
case EWhichModel::Thermal: return x10_animData->GetInfraModel().operator bool();
default:
return false;
}
}
switch(which)
{
case EWhichModel::Normal:
return x1c_normalModel;
case EWhichModel::XRay:
return x2c_xrayModel;
case EWhichModel::Thermal:
return x3c_infraModel;
default: return false;
}
}
};
}