aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/ParticleEmitter.cpp
blob: 90b77a09571f4359d6d4335803d29628d936f4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#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();
	}
}