diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-17 14:36:33 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-17 14:36:33 +0100 |
commit | 473f807b1ec0fc67f40c65b310e132e4b83a76a3 (patch) | |
tree | b5509f1fea0238707ae887ee26ccea2fc8f59a69 /src/crepe/api/ParticleEmitter.cpp | |
parent | f2a95686ec6d33d15f38fef4420700cefc875e89 (diff) | |
parent | c96ef5f62a1369d66e8eba9bf8ed192e3cf8e716 (diff) |
Merge remote-tracking branch 'origin/master' into max/game
Diffstat (limited to 'src/crepe/api/ParticleEmitter.cpp')
-rw-r--r-- | src/crepe/api/ParticleEmitter.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crepe/api/ParticleEmitter.cpp b/src/crepe/api/ParticleEmitter.cpp index 90b77a0..4f54bbd 100644 --- a/src/crepe/api/ParticleEmitter.cpp +++ b/src/crepe/api/ParticleEmitter.cpp @@ -1,11 +1,14 @@ #include "ParticleEmitter.h" +#include "api/Sprite.h" using namespace crepe; -ParticleEmitter::ParticleEmitter(game_object_id_t game_object_id, const Data & data) +ParticleEmitter::ParticleEmitter(game_object_id_t game_object_id, const Sprite & sprite, + const Data & data) : Component(game_object_id), + sprite(sprite), data(data) { for (size_t i = 0; i < this->data.max_particles; i++) { - this->data.particles.emplace_back(); + this->particles.emplace_back(); } } |