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
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CExplosion : public CEffect
|
|
|
|
{
|
2018-11-06 06:16:12 +00:00
|
|
|
std::unique_ptr<CParticleGen> xe8_particleGen;
|
2018-04-26 21:12:20 +00:00
|
|
|
TUniqueId xec_explosionLight = kInvalidUniqueId;
|
2018-11-06 06:16:12 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
const CGenDescription* xf0_particleDesc;
|
|
|
|
const CElectricDescription* xf0_electricDesc;
|
|
|
|
};
|
2018-04-26 21:12:20 +00:00
|
|
|
bool xf4_24_renderThermalHot:1;
|
2017-04-13 19:28:31 +00:00
|
|
|
bool xf4_25_:1;
|
2018-04-26 21:12:20 +00:00
|
|
|
bool xf4_26_renderXray:1;
|
|
|
|
float xf8_time = 0.f;
|
2017-04-13 19:28:31 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
CExplosion(const TLockedToken<CGenDescription>& particle, TUniqueId uid, bool active,
|
2017-11-13 06:19:18 +00:00
|
|
|
const CEntityInfo& info, std::string_view name, const zeus::CTransform& xf,
|
2017-04-13 19:28:31 +00:00
|
|
|
u32, const zeus::CVector3f& scale, const zeus::CColor& color);
|
2018-11-06 06:16:12 +00:00
|
|
|
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);
|
2017-09-12 15:27:48 +00:00
|
|
|
|
|
|
|
void Accept(IVisitor&);
|
2018-04-26 21:12:20 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
|
|
|
|
void Think(float, CStateManager&);
|
|
|
|
void PreRender(CStateManager&, const zeus::CFrustum&);
|
|
|
|
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const;
|
|
|
|
void Render(const CStateManager&) const;
|
|
|
|
bool CanRenderUnsorted(const CStateManager&) const;
|
2017-04-13 19:28:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|