CWaveBuster: Add Accept implementation

More low hanging fruit that can be resolved.
This commit is contained in:
Lioncash 2020-05-09 21:17:20 -04:00
parent 3dddfa63cf
commit cd13a49649
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,8 @@
#include "Runtime/CSimplePool.hpp"
#include "Runtime/GameGlobalObjects.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path
namespace urde {
CWaveBuster::CWaveBuster(const TToken<CWeaponDescription>& desc, EWeaponType type, const zeus::CTransform& xf,
@ -32,6 +34,8 @@ void CWaveBuster::ResetBeam(bool deactivate) {}
void CWaveBuster::SetNewTarget(TUniqueId id) {}
void CWaveBuster::Accept(IVisitor& visitor) { visitor.Visit(this); }
void CWaveBuster::AddToRenderer([[maybe_unused]] const zeus::CFrustum& frustum, CStateManager& mgr) {
const auto bounds = GetSortingBounds(mgr);
EnsureRendered(mgr, x2e8_originalXf.origin, bounds);

View File

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