aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/ReplaySystem.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 21:04:30 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 21:04:30 +0100
commit359ad8db97305856f4cfdade1cd1dada78a7a635 (patch)
treea6d5dce34c2aa5406744c414baccf6a2450dd8a5 /src/crepe/system/ReplaySystem.h
parent313da47b72aafa0b40ac2cd2b586d525ed17fbd4 (diff)
more replay system WIP
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();
};
}