blob: 242eae4e782c0cd6e523704d2461c0005ae07925 (
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.h"
namespace crepe {
class ReplaySystem;
class Memento;
typedef size_t recording_t;
class ReplayManager : public Manager {
public:
ReplayManager(Mediator & mediator);
friend class ReplaySystem;
protected:
void record_frame();
private:
bool recording;
struct Recording {
recording_t id;
std::vector<Memento> frames;
};
public:
void record_start();
recording_t record_end();
};
} // namespace crepe
|