Pyrogenesis  trunk
Namespaces | Functions
SavedGame.h File Reference

Contains functions for managing saved game archives. More...

#include "scriptinterface/ScriptInterface.h"
Include dependency graph for SavedGame.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SavedGames
 

Functions

Status SavedGames::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. More...
 
Status SavedGames::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. More...
 
Status SavedGames::Load (const std::wstring &name, ScriptInterface &scriptInterface, JS::MutableHandleValue metadata, std::string &savedState)
 Load saved game archive with the given name. More...
 
JS::Value SavedGames::GetSavedGames (ScriptInterface &scriptInterface)
 Get list of saved games for GUI script usage. More...
 
bool SavedGames::DeleteSavedGame (const std::wstring &name)
 Permanently deletes the saved game archive with the given name. More...
 
JS::Value SavedGames::GetEngineInfo (ScriptInterface &scriptInterface)
 Gets info (version and mods loaded) on the running engine. More...
 

Detailed Description

Contains functions for managing saved game archives.

A saved game is simply a zip archive with the extension '0adsave' and containing two files: