blob: 6f6fce478dfa525f3e924f902ca4f22f078f495c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include "../manager/ReplayManager.h"
#include "../manager/SystemManager.h"
#include "System.h"
namespace crepe {
class ReplaySystem : public System {
public:
using System::System;
void fixed_update() override;
private:
ReplayManager::State last_state = ReplayManager::IDLE;
void update_recording();
void update_playing();
struct Snapshot {
ComponentManager::Snapshot components;
SystemManager::Snapshot systems;
};
Snapshot playback;
void playback_begin();
void playback_end();
};
}
|