mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 03:07:41 +00:00
New code style refactor
This commit is contained in:
@@ -7,53 +7,40 @@
|
||||
|
||||
#include "TCastTo.hpp"
|
||||
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
|
||||
CBoneTracking::CBoneTracking(const CAnimData& animData, std::string_view bone, float f1, float f2, bool b1)
|
||||
: x14_segId(animData.GetCharLayoutInfo().GetSegIdFromString(bone)), x1c_(f1), x20_(f2), x36_24_active(false),
|
||||
x36_25_(false), x36_26_(b1), x36_27_(b1), x36_28_(b1), x36_29_(b1)
|
||||
{
|
||||
}
|
||||
: x14_segId(animData.GetCharLayoutInfo().GetSegIdFromString(bone))
|
||||
, x1c_(f1)
|
||||
, x20_(f2)
|
||||
, x36_24_active(false)
|
||||
, x36_25_(false)
|
||||
, x36_26_(b1)
|
||||
, x36_27_(b1)
|
||||
, x36_28_(b1)
|
||||
, x36_29_(b1) {}
|
||||
|
||||
void CBoneTracking::Update(float dt)
|
||||
{
|
||||
x18_time += dt;
|
||||
void CBoneTracking::Update(float dt) { x18_time += dt; }
|
||||
|
||||
void CBoneTracking::PreRender(const CStateManager& mgr, CAnimData& animData, const zeus::CTransform& xf,
|
||||
const zeus::CVector3f& vec, const CBodyController& bodyController) {
|
||||
TCastToPtr<CPatterned> patterned = bodyController.GetOwner();
|
||||
|
||||
PreRender(mgr, animData, xf, vec,
|
||||
(bodyController.GetBodyStateInfo().ApplyHeadTracking() && patterned && patterned->ApplyBoneTracking()));
|
||||
}
|
||||
|
||||
void CBoneTracking::PreRender(const CStateManager& mgr, CAnimData& animData, const zeus::CTransform& xf,
|
||||
const zeus::CVector3f& vec, const CBodyController& bodyController)
|
||||
{
|
||||
TCastToPtr<CPatterned> patterned = bodyController.GetOwner();
|
||||
const zeus::CVector3f& vec, bool b) {
|
||||
if (x14_segId == 0)
|
||||
return;
|
||||
|
||||
PreRender(mgr, animData, xf, vec,
|
||||
(bodyController.GetBodyStateInfo().ApplyHeadTracking() && patterned && patterned->ApplyBoneTracking()));
|
||||
x18_time = 0.f;
|
||||
}
|
||||
|
||||
void CBoneTracking::PreRender(const CStateManager& mgr, CAnimData& animData, const zeus::CTransform& xf,
|
||||
const zeus::CVector3f& vec, bool b)
|
||||
{
|
||||
if (x14_segId == 0)
|
||||
return;
|
||||
void CBoneTracking::SetActive(bool) { x36_24_active = true; }
|
||||
|
||||
|
||||
x18_time = 0.f;
|
||||
}
|
||||
void CBoneTracking::SetTarget(TUniqueId target) { x34_target = target; }
|
||||
|
||||
void CBoneTracking::SetActive(bool)
|
||||
{
|
||||
x36_24_active = true;
|
||||
}
|
||||
|
||||
void CBoneTracking::SetTarget(TUniqueId target)
|
||||
{
|
||||
x34_target = target;
|
||||
}
|
||||
|
||||
void CBoneTracking::SetTargetPosition(const zeus::CVector3f& targetPos)
|
||||
{
|
||||
x24_targetPosition = targetPos;
|
||||
}
|
||||
}
|
||||
void CBoneTracking::SetTargetPosition(const zeus::CVector3f& targetPos) { x24_targetPosition = targetPos; }
|
||||
} // namespace urde
|
||||
Reference in New Issue
Block a user