diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-11 20:21:31 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-11 20:21:31 +0100 |
commit | 149b3b5dbc8b18a142bf35869e54ab05e8f26d54 (patch) | |
tree | 11169ff5d0a5ca52ed1e6976b2c43c8e19f8f741 /src/crepe/api/LoopManager.h | |
parent | ec7a4af3e1cc0ebfe2c6df21f15575a1b1abbd6c (diff) |
added chrono::duration
Diffstat (limited to 'src/crepe/api/LoopManager.h')
-rw-r--r-- | src/crepe/api/LoopManager.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/crepe/api/LoopManager.h b/src/crepe/api/LoopManager.h index 5d8c91b..d4668b8 100644 --- a/src/crepe/api/LoopManager.h +++ b/src/crepe/api/LoopManager.h @@ -1,6 +1,6 @@ #pragma once -namespace crepe { +#include <memory> class RenderSystem; class SDLContext; @@ -11,14 +11,14 @@ class ParticleSystem; class PhysicsSystem; class AnimatorSystem; class CollisionSystem; +namespace crepe { + + class LoopManager { public: void start(); - LoopManager(const RenderSystem &, const SDLContext &, const LoopTimer &, - const ScriptSystem &, const SoundSystem &, - const ParticleSystem &, const PhysicsSystem &, - const AnimatorSystem &, const CollisionSystem &); + LoopManager(); private: /** @@ -75,6 +75,15 @@ private: void render(); bool game_running = false; + // For later if singletons are removed cant make them now because destructors are private. + // std::unique_ptr<RenderSystem> render_system; + // std::unique_ptr<SDLContext> sdl_context; + // std::unique_ptr<LoopTimer> loop_timer; + // std::unique_ptr<ScriptSystem> script_system; + // std::unique_ptr<ParticleSystem> particle_system; + // std::unique_ptr<PhysicsSystem> physics_system; + // std::unique_ptr<AnimatorSystem> animator_system; + // std::unique_ptr<CollisionSystem> collision_system; }; } // namespace crepe |