Match CGunMotion::Update

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-07 02:12:59 +03:00
parent 38e19caf18
commit d54cc35e8d
No known key found for this signature in database
GPG Key ID: E224F951761145F8
3 changed files with 10 additions and 4 deletions

View File

@ -38,7 +38,7 @@ public:
void EnterFidget(CStateManager&, int, int, int);
void EnterStruck(CStateManager&, float);
void LoadFidgetAnimAsync(CStateManager&, int, int, int);
bool Update(float, CStateManager&);
int Update(float, CStateManager&);
void EnterIdle(CStateManager&);
void ReturnToDefault(CStateManager&, float);
void Reset();

View File

@ -17,8 +17,8 @@ void CGunController::EnterStruck(CStateManager&, float) {}
void CGunController::LoadFidgetAnimAsync(CStateManager&, int, int, int) {}
bool CGunController::Update(float, CStateManager&) {
return false;
int CGunController::Update(float, CStateManager&) {
return 0;
}
void CGunController::EnterIdle(CStateManager&) {}

View File

@ -63,7 +63,13 @@ bool CGunMotion::PlayPasAnim(SamusGun::EAnimationState state, CStateManager& mgr
return loop;
}
void CGunMotion::Update(float, CStateManager&) {}
void CGunMotion::Update(float dt, CStateManager& mgr) {
x0_modelData.AdvanceAnimation(dt, mgr, kInvalidAreaId, true);
switch (x4c_gunController.Update(dt, mgr)) {
case 1:
xb8_24_animPlaying = false;
}
}
void CGunMotion::Draw(const CStateManager&, const CTransform4f&) const {}