blob: 35f960d2beed89d99de911bbf5d1bad1e1336778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#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();
}
}
|