metaforce/Runtime/World/CExplosion.hpp

39 lines
1.4 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2017-04-13 19:28:31 +00:00
#include "CEffect.hpp"
#include "Particle/CElementGen.hpp"
2017-04-15 06:16:38 +00:00
#include "Particle/CGenDescription.hpp"
2017-04-13 19:28:31 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
2017-04-13 19:28:31 +00:00
2018-12-08 05:30:43 +00:00
class CExplosion : public CEffect {
std::unique_ptr<CParticleGen> xe8_particleGen;
TUniqueId xec_explosionLight = kInvalidUniqueId;
union {
const CGenDescription* xf0_particleDesc;
const CElectricDescription* xf0_electricDesc;
};
bool xf4_24_renderThermalHot : 1;
bool xf4_25_ : 1;
bool xf4_26_renderXray : 1;
float xf8_time = 0.f;
2017-04-13 19:28:31 +00:00
public:
2018-12-08 05:30:43 +00:00
CExplosion(const TLockedToken<CGenDescription>& particle, TUniqueId uid, bool active, const CEntityInfo& info,
std::string_view name, const zeus::CTransform& xf, u32, const zeus::CVector3f& scale,
const zeus::CColor& color);
CExplosion(const TLockedToken<CElectricDescription>& electric, TUniqueId uid, bool active, const CEntityInfo& info,
std::string_view name, const zeus::CTransform& xf, u32, const zeus::CVector3f& scale,
const zeus::CColor& color);
void Accept(IVisitor&) override;
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
void Think(float, CStateManager&) override;
void PreRender(CStateManager&, const zeus::CFrustum&) override;
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const override;
void Render(const CStateManager&) const override;
bool CanRenderUnsorted(const CStateManager&) const override;
2017-04-13 19:28:31 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde