Pyrogenesis  trunk
Namespaces | Functions
VisualReplay.h File Reference
#include "scriptinterface/ScriptInterface.h"
Include dependency graph for VisualReplay.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 VisualReplay
 Contains functions for visually replaying past games.
 

Functions

OsPath VisualReplay::GetDirectoryName ()
 Returns the path to the sim-log directory (that contains the directories with the replay files. More...
 
void VisualReplay::StartVisualReplay (const CStrW &directory)
 Replays the commands.txt file in the given subdirectory visually. More...
 
JS::Value VisualReplay::GetReplays (ScriptInterface &scriptInterface)
 Get a list of replays to display in the GUI. More...
 
JS::Value VisualReplay::LoadReplayData (ScriptInterface &scriptInterface, OsPath &directory)
 Parses a commands.txt file and extracts metadata. More...
 
bool VisualReplay::DeleteReplay (const CStrW &replayFile)
 Permanently deletes the visual replay (including the parent directory) More...
 
JS::Value VisualReplay::GetReplayAttributes (ScriptInterface::CxPrivate *pCxPrivate, const CStrW &directoryName)
 Returns the parsed header of the replay file (commands.txt). More...
 
bool VisualReplay::HasReplayMetadata (const CStrW &directoryName)
 Returns whether or not the metadata / summary screen data has been saved properly when the game ended. More...
 
JS::Value VisualReplay::GetReplayMetadata (ScriptInterface::CxPrivate *pCxPrivate, const CStrW &directoryName)
 Returns the metadata of a replay. More...
 
void VisualReplay::SaveReplayMetadata (ScriptInterface *scriptInterface)
 Saves the metadata from the session to metadata.json. More...