2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 13:47:43 +00:00

Implement CPatterned::KnockBack

This commit is contained in:
Jack Andersen
2018-11-05 20:16:12 -10:00
parent 3ef7386978
commit 0b3a9e1865
42 changed files with 709 additions and 385 deletions

View File

@@ -9,9 +9,13 @@ namespace urde
class CExplosion : public CEffect
{
std::unique_ptr<CElementGen> xe8_particleGen;
std::unique_ptr<CParticleGen> xe8_particleGen;
TUniqueId xec_explosionLight = kInvalidUniqueId;
const CGenDescription* xf0_particleDesc;
union
{
const CGenDescription* xf0_particleDesc;
const CElectricDescription* xf0_electricDesc;
};
bool xf4_24_renderThermalHot:1;
bool xf4_25_:1;
bool xf4_26_renderXray:1;
@@ -21,6 +25,9 @@ public:
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&);
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);