Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
SavedGame.h File Reference

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

Go to the source code of this file.

Namespaces

 SavedGames
 

Functions

Status SavedGames::Save (const std::wstring &name, const std::wstring &description, CSimulation2 &simulation, CGUIManager *gui, int playerID)
 Create new saved game archive with given name and simulation data. More...
 
Status SavedGames::SavePrefix (const std::wstring &prefix, const std::wstring &description, CSimulation2 &simulation, CGUIManager *gui, int playerID)
 Create new saved game archive with given prefix and simulation data. More...
 
Status SavedGames::Load (const std::wstring &name, ScriptInterface &scriptInterface, CScriptValRooted &metadata, std::string &savedState)
 Load saved game archive with the given name. More...
 
std::vector< CScriptValRootedSavedGames::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...
 

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:

Definition in file SavedGame.h.