Pyrogenesis  trunk
Namespaces | Functions
VisualReplay.h File Reference
#include "lib/os_path.h"
#include "ps/CStrForward.h"
#include "scriptinterface/ScriptTypes.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::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...