aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 19:52:11 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 19:52:11 +0100
commitbe1e97bc7a494963ab1567492fafcda99e36f683 (patch)
tree6b9e34e5e297f55dda44b157d4d33a0bf83bffba /src/crepe/api
parent9a95e6cb2c1f1255643d1b8996cd8eeb108c6f8c (diff)
`make format`
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/AssetManager.h3
-rw-r--r--src/crepe/api/ParticleEmitter.cpp6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/crepe/api/AssetManager.h b/src/crepe/api/AssetManager.h
index dbfaef3..86a9902 100644
--- a/src/crepe/api/AssetManager.h
+++ b/src/crepe/api/AssetManager.h
@@ -56,7 +56,8 @@ public:
* cache.
*/
template <typename T>
- std::shared_ptr<T> cache(const std::string & file_path, bool reload = false);
+ std::shared_ptr<T> cache(const std::string & file_path,
+ bool reload = false);
};
} // namespace crepe
diff --git a/src/crepe/api/ParticleEmitter.cpp b/src/crepe/api/ParticleEmitter.cpp
index 43d2e69..35f960d 100644
--- a/src/crepe/api/ParticleEmitter.cpp
+++ b/src/crepe/api/ParticleEmitter.cpp
@@ -2,8 +2,10 @@
using namespace crepe;
-ParticleEmitter::ParticleEmitter(game_object_id_t game_object_id, const Data & data)
- : Component(game_object_id), data(data) {
+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();
}