blob: 43d2e695f4b5ea839b259f809a5b800861c87f07 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include "ParticleEmitter.h"
using namespace crepe;
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();
}
}
|