diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-14 10:23:04 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-14 10:23:04 +0100 |
commit | 5e6b80ba9fe18143b994a301ab0ba1ba54072b43 (patch) | |
tree | 2784b5bdb49dba729884af5d4fd80dd9e44776d1 /src/crepe/api/ParticleEmitter.cpp | |
parent | 767f40a61952892d60d204ecaaffa07e7e396d28 (diff) |
Working color, fucked up git merge
Diffstat (limited to 'src/crepe/api/ParticleEmitter.cpp')
-rw-r--r-- | src/crepe/api/ParticleEmitter.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/crepe/api/ParticleEmitter.cpp b/src/crepe/api/ParticleEmitter.cpp index e7f298c..35f960d 100644 --- a/src/crepe/api/ParticleEmitter.cpp +++ b/src/crepe/api/ParticleEmitter.cpp @@ -1,18 +1,12 @@ #include "ParticleEmitter.h" -#include "Particle.h" using namespace crepe; -ParticleEmitter::ParticleEmitter(uint32_t game_object_id, const Data & data) - : Component(game_object_id), data(data) { +ParticleEmitter::ParticleEmitter(game_object_id_t game_object_id, + const Data & data) + : Component(game_object_id), + data(data) { for (size_t i = 0; i < this->data.max_particles; i++) { this->data.particles.emplace_back(); } } - -ParticleEmitter::~ParticleEmitter() { - std::vector<Particle>::iterator it = this->data.particles.begin(); - while (it != this->data.particles.end()) { - it = this->data.particles.erase(it); - } -} |