Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/VisualReplay.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2019 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 14 Lines | |||||
/** | /** | ||||
* Contains functions for visually replaying past games. | * Contains functions for visually replaying past games. | ||||
*/ | */ | ||||
namespace VisualReplay | namespace VisualReplay | ||||
{ | { | ||||
/** | /** | ||||
* Returns the path to the sim-log directory (that contains the directories with the replay files. | * Returns the absolute path to the sim-log directory (that contains the directories with the replay files. | ||||
* | */ | ||||
* @param scriptInterface - the ScriptInterface in which to create the return data. | OsPath GetDirectoryPath(); | ||||
* @return OsPath the absolute file path | |||||
/** | |||||
* Returns the absolute path to the replay cache file. | |||||
*/ | |||||
OsPath GetCacheFilePath(); | |||||
/** | |||||
* 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. | |||||
*/ | */ | ||||
OsPath GetDirectoryName(); | OsPath GetTempCacheFilePath(); | ||||
/** | /** | ||||
* Replays the commands.txt file in the given subdirectory visually. | * Replays the commands.txt file in the given subdirectory visually. | ||||
*/ | */ | ||||
bool StartVisualReplay(const OsPath& directory); | bool StartVisualReplay(const OsPath& directory); | ||||
/** | /** | ||||
* Reads the replay Cache file and parses it into a jsObject | * Reads the replay Cache file and parses it into a jsObject | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator