CWaveBuster: Add AddToRenderer implementation

Low hanging fruit and fairly trivial to implement.
This commit is contained in:
Lioncash 2020-05-09 21:12:09 -04:00
parent 5a5c6f76a4
commit 3dddfa63cf
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,11 @@ void CWaveBuster::ResetBeam(bool deactivate) {}
void CWaveBuster::SetNewTarget(TUniqueId id) {} void CWaveBuster::SetNewTarget(TUniqueId id) {}
void CWaveBuster::AddToRenderer([[maybe_unused]] const zeus::CFrustum& frustum, CStateManager& mgr) {
const auto bounds = GetSortingBounds(mgr);
EnsureRendered(mgr, x2e8_originalXf.origin, bounds);
}
std::optional<zeus::CAABox> CWaveBuster::GetTouchBounds() const { std::optional<zeus::CAABox> CWaveBuster::GetTouchBounds() const {
if (x3d0_28_) { if (x3d0_28_) {
return std::nullopt; return std::nullopt;

View File

@ -55,6 +55,7 @@ public:
void ResetBeam(bool deactivate); void ResetBeam(bool deactivate);
void SetNewTarget(TUniqueId id); void SetNewTarget(TUniqueId id);
void AddToRenderer(const zeus::CFrustum& frustum, CStateManager& mgr) override;
std::optional<zeus::CAABox> GetTouchBounds() const override; std::optional<zeus::CAABox> GetTouchBounds() const override;
}; };