2018-10-11 22:57:05 +00:00
|
|
|
#ifndef __URDE_CSCRIPTEMPULSE_HPP__
|
|
|
|
#define __URDE_CSCRIPTEMPULSE_HPP__
|
|
|
|
|
|
|
|
#include "CActor.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-10-11 22:57:05 +00:00
|
|
|
class CGenDescription;
|
|
|
|
class CElementGen;
|
2018-12-08 05:30:43 +00:00
|
|
|
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;
|
|
|
|
|
2018-10-11 22:57:05 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptEMPulse(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, bool, float, float, float,
|
|
|
|
float, float, float, float, CAssetId);
|
2018-10-11 22:57:05 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void Accept(IVisitor&);
|
|
|
|
void Think(float, CStateManager&);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
|
2019-04-07 05:14:48 +00:00
|
|
|
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const;
|
2018-12-08 05:30:43 +00:00
|
|
|
void CalculateRenderBounds();
|
2019-01-29 08:28:35 +00:00
|
|
|
rstl::optional<zeus::CAABox> GetTouchBounds() const;
|
2018-12-08 05:30:43 +00:00
|
|
|
void Touch(CActor&, CStateManager&);
|
2018-10-11 22:57:05 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|
2018-10-11 22:57:05 +00:00
|
|
|
#endif // __URDE_CSCRIPTEMPULSE_HPP__
|