diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-12 19:23:25 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-12 19:23:25 +0100 |
commit | cd5f6b542f9cb447e3a9f500713c556a3d034bf3 (patch) | |
tree | 1d3372f30305e9f7a567b220a9b51464ba8ba272 /src/crepe/manager/Mediator.h | |
parent | ed90fde01c38b878645bb68d3aa7353349f3b300 (diff) | |
parent | fd403d038b017ec8976023471073329896035e36 (diff) |
merge master
Diffstat (limited to 'src/crepe/manager/Mediator.h')
-rw-r--r-- | src/crepe/manager/Mediator.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/crepe/manager/Mediator.h b/src/crepe/manager/Mediator.h index 95ca4b5..842f1de 100644 --- a/src/crepe/manager/Mediator.h +++ b/src/crepe/manager/Mediator.h @@ -2,17 +2,15 @@ #include "../util/OptionalRef.h" -// TODO: remove these singletons: -#include "EventManager.h" - namespace crepe { class ComponentManager; class SceneManager; +class EventManager; +class LoopTimerManager; class SaveManager; class ResourceManager; class SDLContext; -class LoopTimer; class ReplayManager; class SystemManager; @@ -32,10 +30,10 @@ 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<EventManager> event_manager = EventManager::get_instance(); OptionalRef<ResourceManager> resource_manager; - OptionalRef<LoopTimer> timer; OptionalRef<ReplayManager> replay_manager; OptionalRef<SystemManager> system_manager; }; |