mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
implement entity-bound emitters
This commit is contained in:
parent
6d63c71221
commit
83ddbda90b
3 changed files with 21 additions and 7 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "maths/UVRegion.hpp"
|
||||
#include "maths/util.hpp"
|
||||
|
||||
class Level;
|
||||
class Emitter;
|
||||
|
||||
struct Particle {
|
||||
|
|
@ -36,6 +37,7 @@ struct ParticleBehaviour {
|
|||
};
|
||||
|
||||
class Emitter {
|
||||
const Level& level;
|
||||
/// @brief Static position or entity
|
||||
std::variant<glm::vec3, entityid_t> origin;
|
||||
/// @brief Particle prototype
|
||||
|
|
@ -60,6 +62,7 @@ public:
|
|||
ParticleBehaviour behaviour;
|
||||
|
||||
Emitter(
|
||||
const Level& level,
|
||||
std::variant<glm::vec3, entityid_t> origin,
|
||||
Particle prototype,
|
||||
const Texture* texture,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue