aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/manager/SystemManager.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 21:49:32 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 21:49:32 +0100
commitb9694e8cc6b85a0089f97ff3c21862adc75a7ee5 (patch)
treed5e85a8000e1b78f5617a792d9acd64f9465ecb5 /src/crepe/manager/SystemManager.h
parent000062b462a3af86db4dac4d8c9e5ef32feb2996 (diff)
working proof of concept replay system
Diffstat (limited to 'src/crepe/manager/SystemManager.h')
-rw-r--r--src/crepe/manager/SystemManager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crepe/manager/SystemManager.h b/src/crepe/manager/SystemManager.h
index 5726a5c..6cf7f2b 100644
--- a/src/crepe/manager/SystemManager.h
+++ b/src/crepe/manager/SystemManager.h
@@ -48,6 +48,12 @@ public:
*/
template <class T>
T & get_system();
+
+public:
+ typedef std::unordered_map<std::type_index, bool> Snapshot;
+ Snapshot save();
+ void restore(const Snapshot & snapshot);
+ void disable_all();
};
} // namespace crepe