2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-02-05 01:27:03 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include <memory>
|
|
|
|
#include "Runtime/Particle/IElement.hpp"
|
2016-02-05 08:34:14 +00:00
|
|
|
|
2019-12-03 08:47:05 +00:00
|
|
|
/* Documentation at: https://wiki.axiodl.com/w/Particle_Script#Emitter_Elements */
|
2016-02-28 06:55:05 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
|
|
|
|
class CEESimpleEmitter : public CEmitterElement {
|
|
|
|
std::unique_ptr<CVectorElement> x4_loc;
|
|
|
|
std::unique_ptr<CVectorElement> x8_vec;
|
2016-02-05 01:27:03 +00:00
|
|
|
|
2016-02-06 00:34:40 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CEESimpleEmitter(std::unique_ptr<CVectorElement>&& a, std::unique_ptr<CVectorElement>&& b)
|
|
|
|
: x4_loc(std::move(a)), x8_vec(std::move(b)) {}
|
2019-08-09 12:45:18 +00:00
|
|
|
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override;
|
2016-02-05 01:27:03 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CVESphere : public CEmitterElement {
|
|
|
|
std::unique_ptr<CVectorElement> x4_sphereOrigin;
|
|
|
|
std::unique_ptr<CRealElement> x8_sphereRadius;
|
|
|
|
std::unique_ptr<CRealElement> xc_velocityMag;
|
|
|
|
|
2016-02-06 00:34:40 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CVESphere(std::unique_ptr<CVectorElement>&& a, std::unique_ptr<CRealElement>&& b, std::unique_ptr<CRealElement>&& c)
|
|
|
|
: x4_sphereOrigin(std::move(a)), x8_sphereRadius(std::move(b)), xc_velocityMag(std::move(c)) {}
|
2019-08-09 12:45:18 +00:00
|
|
|
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override;
|
2016-02-05 08:34:14 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CVEAngleSphere : public CEmitterElement {
|
|
|
|
std::unique_ptr<CVectorElement> x4_sphereOrigin;
|
|
|
|
std::unique_ptr<CRealElement> x8_sphereRadius;
|
|
|
|
std::unique_ptr<CRealElement> xc_velocityMag;
|
|
|
|
std::unique_ptr<CRealElement> x10_angleXBias;
|
|
|
|
std::unique_ptr<CRealElement> x14_angleYBias;
|
|
|
|
std::unique_ptr<CRealElement> x18_angleXRange;
|
|
|
|
std::unique_ptr<CRealElement> x1c_angleYRange;
|
|
|
|
|
2016-02-06 00:34:40 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CVEAngleSphere(std::unique_ptr<CVectorElement>&& a, std::unique_ptr<CRealElement>&& b,
|
|
|
|
std::unique_ptr<CRealElement>&& c, std::unique_ptr<CRealElement>&& d,
|
|
|
|
std::unique_ptr<CRealElement>&& e, std::unique_ptr<CRealElement>&& f,
|
|
|
|
std::unique_ptr<CRealElement>&& 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)) {}
|
2019-08-09 12:45:18 +00:00
|
|
|
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override;
|
2016-02-05 08:34:14 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|