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