![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Contains functions for managing saved game archives. More...
#include "lib/status.h"#include "scriptinterface/StructuredClone.h"#include <js/Value.h>#include <optional>#include <string>

Go to the source code of this file.
Classes | |
| struct | SavedGames::LoadResult |
Namespaces | |
| namespace | Script |
| Abstraction around a SpiderMonkey JSContext. | |
| namespace | SavedGames |
Functions | |
| Status | SavedGames::Save (const CStrW &name, const CStrW &description, CSimulation2 &simulation, const Script::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 Script::StructuredClone &guiMetadataClone) |
| Create new saved game archive with given prefix and simulation data. More... | |
| std::optional< LoadResult > | SavedGames::Load (const Script::Interface &scriptInterface, const std::wstring &name) |
| Load saved game archive with the given name. More... | |
| JS::Value | SavedGames::GetSavedGames (const Script::Interface &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... | |
Contains functions for managing saved game archives.
A saved game is simply a zip archive with the extension '0adsave' and containing two files: