From 9eff2e24fa4cf0ffad2b47cc922a6558bc1a9fa1 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 30 Nov 2024 16:42:21 +0100 Subject: `make format` --- src/crepe/api/LoopManager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/crepe/api/LoopManager.cpp') diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp index b277185..731cfb7 100644 --- a/src/crepe/api/LoopManager.cpp +++ b/src/crepe/api/LoopManager.cpp @@ -22,9 +22,7 @@ LoopManager::LoopManager() { this->load_system(); } -void LoopManager::process_input() { - this->sdl_context.handle_events(this->game_running); -} +void LoopManager::process_input() { this->sdl_context.handle_events(this->game_running); } void LoopManager::start() { this->setup(); @@ -69,4 +67,3 @@ void LoopManager::render() { } void LoopManager::update() {} - -- cgit v1.2.3 From 55f245cb5cbd1cba54e0dc5f0cbceaf3f526c8b1 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 10 Dec 2024 14:13:42 +0100 Subject: process feedback on #60 --- src/crepe/Component.h | 2 -- src/crepe/api/LoopManager.cpp | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/crepe/api/LoopManager.cpp') diff --git a/src/crepe/Component.h b/src/crepe/Component.h index 060ff00..eff5a58 100644 --- a/src/crepe/Component.h +++ b/src/crepe/Component.h @@ -50,8 +50,6 @@ public: * \return The maximum number of instances for this component */ virtual int get_instances_max() const { return -1; } - //! Only ComponentManager needs to know the max instance count - friend class ComponentManager; }; } // namespace crepe diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp index 88243c4..3e9e21c 100644 --- a/src/crepe/api/LoopManager.cpp +++ b/src/crepe/api/LoopManager.cpp @@ -1,4 +1,5 @@ #include "../system/AnimatorSystem.h" +#include "../system/AudioSystem.h" #include "../system/CollisionSystem.h" #include "../system/InputSystem.h" #include "../system/ParticleSystem.h" @@ -20,6 +21,7 @@ LoopManager::LoopManager() { this->load_system(); this->load_system(); this->load_system(); + this->load_system(); } void LoopManager::process_input() { this->get_system().update(); } @@ -37,6 +39,7 @@ void LoopManager::fixed_update() { this->get_system().update(); this->get_system().update(); this->get_system().update(); + this->get_system().update(); } void LoopManager::loop() { -- cgit v1.2.3