aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/ParticleEmitter.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-07 19:14:34 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-07 19:14:34 +0100
commit289ecc3a3829e9b3acff0b1778f75bc526173977 (patch)
treeef5d548c20eb7315b6f9f9cdf5b94e57a775825e /src/crepe/api/ParticleEmitter.cpp
parentd836022aeb120b483c8ddf54cabe0f4325e68803 (diff)
changed double to float
Diffstat (limited to 'src/crepe/api/ParticleEmitter.cpp')
-rw-r--r--src/crepe/api/ParticleEmitter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/api/ParticleEmitter.cpp b/src/crepe/api/ParticleEmitter.cpp
index 90b77a0..1cfdceb 100644
--- a/src/crepe/api/ParticleEmitter.cpp
+++ b/src/crepe/api/ParticleEmitter.cpp
@@ -1,10 +1,11 @@
#include "ParticleEmitter.h"
+#include "api/Sprite.h"
using namespace crepe;
-ParticleEmitter::ParticleEmitter(game_object_id_t game_object_id, const Data & data)
+ParticleEmitter::ParticleEmitter(game_object_id_t game_object_id, const Sprite & sprite, const Data & data)
: Component(game_object_id),
- data(data) {
+ sprite(sprite), data(data) {
for (size_t i = 0; i < this->data.max_particles; i++) {
this->data.particles.emplace_back();
}