Implementation of IReplayLogger that saves data to a file in the logs directory.
More...
#include <Replay.h>
Implementation of IReplayLogger that saves data to a file in the logs directory.
◆ CReplayLogger()
◆ ~CReplayLogger()
CReplayLogger::~CReplayLogger |
( |
| ) |
|
◆ GetDirectory()
OsPath CReplayLogger::GetDirectory |
( |
| ) |
const |
|
virtual |
Remember the directory containing the commands.txt file, so that we can save additional files to it.
Implements IReplayLogger.
◆ Hash()
void CReplayLogger::Hash |
( |
const std::string & |
hash, |
|
|
bool |
quick |
|
) |
| |
|
virtual |
Optional hash of simulation state (for sync checking).
Implements IReplayLogger.
◆ NONCOPYABLE()
◆ SaveMetadata()
void CReplayLogger::SaveMetadata |
( |
const CSimulation2 & |
simulation | ) |
|
|
virtual |
Saves metadata.json containing part of the simulation state used for the summary screen.
Implements IReplayLogger.
◆ StartGame()
void CReplayLogger::StartGame |
( |
JS::MutableHandleValue |
attribs | ) |
|
|
virtual |
Started the game with the given game attributes.
Implements IReplayLogger.
◆ Turn()
Run the given turn with the given collection of player commands.
Implements IReplayLogger.
◆ m_Directory
OsPath CReplayLogger::m_Directory |
|
private |
◆ m_ScriptInterface
◆ m_Stream
std::ostream* CReplayLogger::m_Stream |
|
private |
The documentation for this class was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/ps/Replay.h
- /home/docker/jenkins/workspace/technical-docs/source/ps/Replay.cpp