Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_SavedGame.h
Show All 17 Lines | |||||
#ifndef INCLUDED_JSI_SAVEDGAME | #ifndef INCLUDED_JSI_SAVEDGAME | ||||
#define INCLUDED_JSI_SAVEDGAME | #define INCLUDED_JSI_SAVEDGAME | ||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
namespace JSI_SavedGame | namespace JSI_SavedGame | ||||
{ | { | ||||
JS::Value GetSavedGames(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value GetSavedGames(ScriptInterface::CxPrivate* pCxPrivate); | ||||
bool DeleteSavedGame(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& name); | bool DeleteSavedGame(const std::wstring& name); | ||||
void SaveGame(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename, const std::wstring& description, JS::HandleValue GUIMetadata); | void SaveGame(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename, const std::wstring& description, JS::HandleValue GUIMetadata); | ||||
void SaveGamePrefix(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& prefix, const std::wstring& description, JS::HandleValue GUIMetadata); | void SaveGamePrefix(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& prefix, const std::wstring& description, JS::HandleValue GUIMetadata); | ||||
void QuickSave(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue GUIMetadata); | void QuickSave(JS::HandleValue GUIMetadata); | ||||
void QuickLoad(ScriptInterface::CxPrivate* pCxPrivate); | void QuickLoad(); | ||||
JS::Value StartSavedGame(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& name); | JS::Value StartSavedGame(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& name); | ||||
void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | ||||
} | } | ||||
#endif // INCLUDED_JSI_SAVEDGAME | #endif // INCLUDED_JSI_SAVEDGAME |
Wildfire Games · Phabricator