Pyrogenesis trunk
|
Go to the source code of this file.
Namespaces | |
namespace | VisualReplay |
Contains functions for visually replaying past games. | |
Functions | |
OsPath | VisualReplay::GetDirectoryPath () |
Returns the absolute path to the sim-log directory (that contains the directories with the replay files. More... | |
OsPath | VisualReplay::GetCacheFilePath () |
Returns the absolute path to the replay cache file. More... | |
OsPath | VisualReplay::GetTempCacheFilePath () |
Returns the absolute path to the temporary replay cache file used to always have a valid cache file in place even if bad things happen. More... | |
bool | VisualReplay::StartVisualReplay (const OsPath &directory) |
Replays the commands.txt file in the given subdirectory visually. More... | |
bool | VisualReplay::ReadCacheFile (const ScriptInterface &scriptInterface, JS::MutableHandleObject cachedReplaysObject) |
Reads the replay Cache file and parses it into a jsObject. More... | |
void | VisualReplay::StoreCacheFile (const ScriptInterface &scriptInterface, JS::HandleObject replays) |
Stores the replay list in the replay cache file. More... | |
JS::HandleObject | VisualReplay::ReloadReplayCache (const ScriptInterface &scriptInterface, bool compareFiles) |
Load the replay cache and check if there are new/deleted replays. More... | |
JS::Value | VisualReplay::GetReplays (const ScriptInterface &scriptInterface, bool compareFiles) |
Get a list of replays to display in the GUI. More... | |
JS::Value | VisualReplay::LoadReplayData (const ScriptInterface &scriptInterface, const OsPath &directory) |
Parses a commands.txt file and extracts metadata. More... | |
bool | VisualReplay::DeleteReplay (const OsPath &replayFile) |
Permanently deletes the visual replay (including the parent directory) More... | |
JS::Value | VisualReplay::GetReplayAttributes (const ScriptInterface &scriptInterface, const OsPath &directoryName) |
Returns the parsed header of the replay file (commands.txt). More... | |
bool | VisualReplay::HasReplayMetadata (const OsPath &directoryName) |
Returns whether or not the metadata / summary screen data has been saved properly when the game ended. More... | |
JS::Value | VisualReplay::GetReplayMetadata (const ScriptInterface &scriptInterface, const OsPath &directoryName) |
Returns the metadata of a replay. More... | |
void | VisualReplay::AddReplayToCache (const ScriptInterface &scriptInterface, const CStrW &directoryName) |
Adds a replay to the replayCache. More... | |