blob: 7032f9e28ee1f174d9b846eb832bb17cc29e4caf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "ParticleEmitter.h"
#include "Particle.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();
}
}
|