aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/manager/Mediator.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-11 19:22:24 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-11 19:22:24 +0100
commit1d303f3a506dc7b6f68edb4af0a2043c4c53ab1e (patch)
tree6881feac4996da15834e85fb56ea3f9d84285189 /src/crepe/manager/Mediator.h
parent37f352c20cdf3c972ad99b076bb091f698132312 (diff)
parent30c17c98e54c1534664de08ca3838c40c859d166 (diff)
mege with master
Diffstat (limited to 'src/crepe/manager/Mediator.h')
-rw-r--r--src/crepe/manager/Mediator.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/crepe/manager/Mediator.h b/src/crepe/manager/Mediator.h
index b529f2c..a055bb9 100644
--- a/src/crepe/manager/Mediator.h
+++ b/src/crepe/manager/Mediator.h
@@ -2,9 +2,6 @@
#include "../util/OptionalRef.h"
-// TODO: remove these singletons:
-#include "../facade/SDLContext.h"
-
namespace crepe {
class ComponentManager;
@@ -13,6 +10,8 @@ class EventManager;
class LoopTimerManager;
class SaveManager;
class ResourceManager;
+class SDLContext;
+class LoopTimer;
/**
* Struct to pass references to classes that would otherwise need to be singletons down to
@@ -27,13 +26,13 @@ class ResourceManager;
* \warning This class should never be directly accessible from the API
*/
struct Mediator {
+ OptionalRef<SDLContext> sdl_context;
OptionalRef<ComponentManager> component_manager;
OptionalRef<SceneManager> scene_manager;
OptionalRef<EventManager> event_manager;
OptionalRef<LoopTimerManager> loop_timer;
OptionalRef<SaveManager> save_manager;
OptionalRef<ResourceManager> resource_manager;
- OptionalRef<SDLContext> sdl_context = SDLContext::get_instance();
};
} // namespace crepe