18 #ifndef INCLUDED_SAVEDGAME 19 #define INCLUDED_SAVEDGAME 49 Status Save(
const CStrW& name,
const CStrW& description,
CSimulation2& simulation,
const shared_ptr<ScriptInterface::StructuredClone>& guiMetadataClone);
73 Status Load(
const std::wstring& name,
ScriptInterface& scriptInterface, JS::MutableHandleValue metadata, std::string& savedState);
101 #endif // INCLUDED_SAVEDGAME bool DeleteSavedGame(const std::wstring &name)
Permanently deletes the saved game archive with the given name.
Definition: SavedGame.cpp:275
static CStr prefix
Definition: DllLoader.cpp:46
Public API for simulation system.
Definition: Simulation2.h:47
Status Save(const CStrW &name, const CStrW &description, CSimulation2 &simulation, const shared_ptr< ScriptInterface::StructuredClone > &guiMetadataClone)
Create new saved game archive with given name and simulation data.
Definition: SavedGame.cpp:57
Status SavePrefix(const CStrW &prefix, const CStrW &description, CSimulation2 &simulation, const shared_ptr< ScriptInterface::StructuredClone > &guiMetadataClone)
Create new saved game archive with given prefix and simulation data.
Definition: SavedGame.cpp:42
Config::Value_type Value
Definition: json_spirit_value.h:181
Status Load(const std::wstring &name, ScriptInterface &scriptInterface, JS::MutableHandleValue metadata, std::string &savedState)
Load saved game archive with the given name.
Definition: SavedGame.cpp:200
JS::Value GetSavedGames(ScriptInterface &scriptInterface)
Get list of saved games for GUI script usage.
Definition: SavedGame.cpp:224
i64 Status
Error handling system.
Definition: status.h:171
Definition: SavedGame.h:37
Abstraction around a SpiderMonkey JSContext.
Definition: ScriptInterface.h:71
External interface to the GUI system.
Definition: GUIManager.h:47
JS::Value GetEngineInfo(ScriptInterface &scriptInterface)
Gets info (version and mods loaded) on the running engine.
Definition: SavedGame.cpp:297