diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-11 21:49:32 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-11 21:49:32 +0100 |
commit | b9694e8cc6b85a0089f97ff3c21862adc75a7ee5 (patch) | |
tree | d5e85a8000e1b78f5617a792d9acd64f9465ecb5 /src/crepe/system/ReplaySystem.h | |
parent | 000062b462a3af86db4dac4d8c9e5ef32feb2996 (diff) |
working proof of concept replay system
Diffstat (limited to 'src/crepe/system/ReplaySystem.h')
-rw-r--r-- | src/crepe/system/ReplaySystem.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/crepe/system/ReplaySystem.h b/src/crepe/system/ReplaySystem.h index fb40176..6f6fce4 100644 --- a/src/crepe/system/ReplaySystem.h +++ b/src/crepe/system/ReplaySystem.h @@ -1,6 +1,7 @@ #pragma once #include "../manager/ReplayManager.h" +#include "../manager/SystemManager.h" #include "System.h" @@ -17,7 +18,12 @@ private: void update_recording(); void update_playing(); - std::unordered_map<std::type_index, bool> system_active_snapshot; + struct Snapshot { + ComponentManager::Snapshot components; + SystemManager::Snapshot systems; + }; + Snapshot playback; + void playback_begin(); void playback_end(); }; |