18 #ifndef INCLUDED_REPlAY 19 #define INCLUDED_REPlAY JS::Value LoadReplayData(ScriptInterface &scriptInterface, OsPath &directory)
Parses a commands.txt file and extracts metadata.
Definition: VisualReplay.cpp:176
Contains functions for visually replaying past games.
Definition: VisualReplay.h:28
JS::Value GetReplays(ScriptInterface &scriptInterface)
Get a list of replays to display in the GUI.
Definition: VisualReplay.cpp:70
Public API for simulation system.
Definition: Simulation2.h:47
Config::Value_type Value
Definition: json_spirit_value.h:181
void StartVisualReplay(const CStrW &directory)
Replays the commands.txt file in the given subdirectory visually.
Definition: VisualReplay.cpp:49
JS::Value GetReplayMetadata(ScriptInterface::CxPrivate *pCxPrivate, const CStrW &directoryName)
Returns the metadata of a replay.
Definition: VisualReplay.cpp:330
OsPath GetDirectoryName()
Returns the path to the sim-log directory (that contains the directories with the replay files...
Definition: VisualReplay.cpp:43
JS::Value GetReplayAttributes(ScriptInterface::CxPrivate *pCxPrivate, const CStrW &directoryName)
Returns the parsed header of the replay file (commands.txt).
Definition: VisualReplay.cpp:268
Definition: ScriptInterface.h:99
bool HasReplayMetadata(const CStrW &directoryName)
Returns whether or not the metadata / summary screen data has been saved properly when the game ended...
Definition: VisualReplay.cpp:317
Abstraction around a SpiderMonkey JSContext.
Definition: ScriptInterface.h:71
bool DeleteReplay(const CStrW &replayFile)
Permanently deletes the visual replay (including the parent directory)
Definition: VisualReplay.cpp:258
External interface to the GUI system.
Definition: GUIManager.h:47
void SaveReplayMetadata(ScriptInterface *scriptInterface)
Saves the metadata from the session to metadata.json.
Definition: VisualReplay.cpp:293