#pragma once #include #include "Runtime/Particle/IElement.hpp" /* Documentation at: https://wiki.axiodl.com/w/Particle_Script#Emitter_Elements */ namespace urde { class CEESimpleEmitter : public CEmitterElement { std::unique_ptr x4_loc; std::unique_ptr x8_vec; public: CEESimpleEmitter(std::unique_ptr&& a, std::unique_ptr&& b) : x4_loc(std::move(a)), x8_vec(std::move(b)) {} bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override; }; class CVESphere : public CEmitterElement { std::unique_ptr x4_sphereOrigin; std::unique_ptr x8_sphereRadius; std::unique_ptr xc_velocityMag; public: CVESphere(std::unique_ptr&& a, std::unique_ptr&& b, std::unique_ptr&& c) : x4_sphereOrigin(std::move(a)), x8_sphereRadius(std::move(b)), xc_velocityMag(std::move(c)) {} bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override; }; class CVEAngleSphere : public CEmitterElement { std::unique_ptr x4_sphereOrigin; std::unique_ptr x8_sphereRadius; std::unique_ptr xc_velocityMag; std::unique_ptr x10_angleXBias; std::unique_ptr x14_angleYBias; std::unique_ptr x18_angleXRange; std::unique_ptr x1c_angleYRange; public: CVEAngleSphere(std::unique_ptr&& a, std::unique_ptr&& b, std::unique_ptr&& c, std::unique_ptr&& d, std::unique_ptr&& e, std::unique_ptr&& f, std::unique_ptr&& g) : x4_sphereOrigin(std::move(a)) , x8_sphereRadius(std::move(b)) , xc_velocityMag(std::move(c)) , x10_angleXBias(std::move(d)) , x14_angleYBias(std::move(e)) , x18_angleXRange(std::move(f)) , x1c_angleYRange(std::move(g)) {} bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override; }; } // namespace urde