|
resonance 1.0.1
|
Playback of a recorded game session that GameManagerImpl::Recreate() installs. More...
#include <gameplaybacker.h>
Public Member Functions | |
| GamePlaybacker (const HxStr &file, GameManagerImpl *pManager, int nFlag) | |
| Restore the recorded session and start the watchdog's playback of it. | |
| ~GamePlaybacker () | |
| Close the watchdog's playback. | |
Playback of a recorded game session that GameManagerImpl::Recreate() installs.
The class is not polymorphic and emits no RTTI. The object is 4 bytes and is allocated with the untagged allocator.
| GamePlaybacker::GamePlaybacker | ( | const HxStr & | file, |
| GameManagerImpl * | pManager, | ||
| int | nFlag ) |
Restore the recorded session and start the watchdog's playback of it.
Opens the recording as an IBFileStream on MakeFreqPath(file), reads three length-prefixed strings from it and discards them, runs the manager's Load(), and hands the stream to Sch::Scheduler::StartPlayback().
| file | The recording. |
| pManager | The manager that installs the playback. |
| nFlag | The flag Recreate() passes. The body does not read it. |
| GamePlaybacker::~GamePlaybacker | ( | ) |
Close the watchdog's playback.