diff options
Diffstat (limited to 'src/crepe/manager/Mediator.h')
-rw-r--r-- | src/crepe/manager/Mediator.h | 7 |
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 |