diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-11 18:42:38 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-11 18:42:38 +0100 |
commit | a2b67f879e2073c5b094c9a480bf637c98703001 (patch) | |
tree | c5b3f8f65923413aa342759a675d77971d1cfbf3 /src/crepe/manager | |
parent | ca6c4f30df6612f60db0fdfe4c2d366d7e4da8ea (diff) |
example working again
Diffstat (limited to 'src/crepe/manager')
-rw-r--r-- | src/crepe/manager/Mediator.h | 2 | ||||
-rw-r--r-- | src/crepe/manager/ReplayManager.cpp | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/crepe/manager/Mediator.h b/src/crepe/manager/Mediator.h index 628154a..eef4432 100644 --- a/src/crepe/manager/Mediator.h +++ b/src/crepe/manager/Mediator.h @@ -13,6 +13,7 @@ class SaveManager; class ResourceManager; class SDLContext; class LoopTimer; +class ReplayManager; /** * Struct to pass references to classes that would otherwise need to be singletons down to @@ -34,6 +35,7 @@ struct Mediator { OptionalRef<EventManager> event_manager = EventManager::get_instance(); OptionalRef<ResourceManager> resource_manager; OptionalRef<LoopTimer> timer; + OptionalRef<ReplayManager> replay_manager; }; } // namespace crepe diff --git a/src/crepe/manager/ReplayManager.cpp b/src/crepe/manager/ReplayManager.cpp index 3643a8e..40d34a4 100644 --- a/src/crepe/manager/ReplayManager.cpp +++ b/src/crepe/manager/ReplayManager.cpp @@ -4,5 +4,22 @@ using namespace crepe; ReplayManager::ReplayManager(Mediator & mediator) : Manager(mediator) { + mediator.replay_manager = *this; +} + +void ReplayManager::record_start() { + +} + +recording_t ReplayManager::record_end() { + return 0; +} + +void ReplayManager::play(recording_t handle) { + +} + +void ReplayManager::release(recording_t handle) { + } |