mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 23:11:20 +00:00
This member function alters instance state in a few implementations, so it shouldn't be made const. The state manager parameter also shouldn't be const. Retrieved data from the post constructed instance is further modified in some implementations. This removes the constness on this parameter in order to fix more const_cast usages in a follow-up change.
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include "Runtime/World/CActor.hpp"
|
|
|
|
namespace urde {
|
|
class CElementGen;
|
|
class CGenDescription;
|
|
|
|
class CScriptEMPulse : public CActor {
|
|
float xe8_duration;
|
|
float xec_finalRadius;
|
|
float xf0_currentRadius;
|
|
float xf4_initialRadius;
|
|
float xf8_interferenceDur;
|
|
float xfc_;
|
|
float x100_interferenceMag;
|
|
float x104_;
|
|
TCachedToken<CGenDescription> x108_particleDesc;
|
|
std::unique_ptr<CElementGen> x114_particleGen;
|
|
zeus::CAABox CalculateBoundingBox() const;
|
|
|
|
public:
|
|
CScriptEMPulse(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, bool, float, float, float,
|
|
float, float, float, float, CAssetId);
|
|
|
|
void Accept(IVisitor&) override;
|
|
void Think(float, CStateManager&) override;
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override;
|
|
void CalculateRenderBounds() override;
|
|
std::optional<zeus::CAABox> GetTouchBounds() const override;
|
|
void Touch(CActor&, CStateManager&) override;
|
|
};
|
|
} // namespace urde
|