aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/LoopManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/LoopManager.h')
-rw-r--r--src/crepe/api/LoopManager.h19
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