CWaveBuster: Implement GetTouchBounds()

Implements GetTouchBounds() according to the implementation within the
GM8E v0 binary.

Fills out the implementation of CWaveBuster a little bit.
This commit is contained in:
Lioncash 2020-03-09 14:47:34 -04:00
parent d93df18a37
commit 9e5dc627ea
2 changed files with 10 additions and 0 deletions

View File

@ -37,4 +37,12 @@ void CWaveBuster::ResetBeam(bool deactivate) {}
void CWaveBuster::SetNewTarget(TUniqueId id) {} void CWaveBuster::SetNewTarget(TUniqueId id) {}
std::optional<zeus::CAABox> CWaveBuster::GetTouchBounds() const {
if (x3d0_28_) {
return std::nullopt;
}
return GetProjectileBounds();
}
} // namespace urde } // namespace urde

View File

@ -54,6 +54,8 @@ public:
void UpdateFx(const zeus::CTransform& xf, float dt, CStateManager& mgr); void UpdateFx(const zeus::CTransform& xf, float dt, CStateManager& mgr);
void ResetBeam(bool deactivate); void ResetBeam(bool deactivate);
void SetNewTarget(TUniqueId id); void SetNewTarget(TUniqueId id);
std::optional<zeus::CAABox> GetTouchBounds() const override;
}; };
} // namespace urde } // namespace urde