aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/ReplaySystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/system/ReplaySystem.h')
-rw-r--r--src/crepe/system/ReplaySystem.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/crepe/system/ReplaySystem.h b/src/crepe/system/ReplaySystem.h
index 15ef3fc..fb40176 100644
--- a/src/crepe/system/ReplaySystem.h
+++ b/src/crepe/system/ReplaySystem.h
@@ -1,5 +1,7 @@
#pragma once
+#include "../manager/ReplayManager.h"
+
#include "System.h"
namespace crepe {
@@ -9,6 +11,15 @@ public:
using System::System;
void fixed_update() override;
+
+private:
+ ReplayManager::State last_state = ReplayManager::IDLE;
+ void update_recording();
+ void update_playing();
+
+ std::unordered_map<std::type_index, bool> system_active_snapshot;
+ void playback_begin();
+ void playback_end();
};
}