2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 22:06:10 +00:00

Move CVar* into Metaforce to begin removal of hecl's Dataspec

This commit is contained in:
2022-02-20 18:28:07 -08:00
parent 64d4b0388c
commit 6c92f03664
45 changed files with 712 additions and 571 deletions

View File

@@ -16,7 +16,7 @@ CFirstPersonCamera::CFirstPersonCamera(TUniqueId uid, const zeus::CTransform& xf
nearz, farz, aspect, watchedObj, false, 0)
, x188_orbitCameraSpeed(orbitCameraSpeed)
, x190_gunFollowXf(xf) {
MP1::tw_FieldOfView->addListener([this](hecl::CVar* cv) { _fovListener(cv); });
MP1::tw_FieldOfView->addListener([this](CVar* cv) { _fovListener(cv); });
}
void CFirstPersonCamera::Accept(IVisitor& visitor) { visitor.Visit(this); }
@@ -328,7 +328,7 @@ void CFirstPersonCamera::UpdateElevation(CStateManager& mgr) {
}
}
void CFirstPersonCamera::_fovListener(hecl::CVar* cv) {
void CFirstPersonCamera::_fovListener(CVar* cv) {
x15c_currentFov = x180_perspInterpStartFov = x184_perspInterpEndFov = cv->toReal();
x170_24_perspDirty = true;
}