|
OpenEnroth cf228e9
|
#include "SaveLoad.h"#include <cassert>#include <algorithm>#include <unordered_map>#include <string>#include <memory>#include <utility>#include "Engine/Engine.h"#include "Engine/Resources/EngineFileSystem.h"#include "Engine/Resources/LOD.h"#include "Engine/Localization.h"#include "Engine/Party.h"#include "Engine/MapInfo.h"#include "Engine/Time/Timer.h"#include "Engine/Graphics/Outdoor.h"#include "Engine/Graphics/Indoor.h"#include "Engine/Graphics/Image.h"#include "Engine/Graphics/Renderer/Renderer.h"#include "Engine/Objects/SpriteObject.h"#include "Engine/Snapshots/CompositeSnapshots.h"#include "GUI/GUIWindow.h"#include "GUI/UI/UIGame.h"#include "GUI/UI/UIStatusBar.h"#include "Media/Audio/AudioPlayer.h"#include "Library/Snapshots/SnapshotSerialization.h"#include "Library/Image/Pcx.h"#include "Library/Logger/Logger.h"#include "Library/LodFormats/LodFormats.h"#include "TurnEngine/TurnEngine.h"Functions | |
| void | loadGame (int uSlot) |
| std::pair< SaveGameHeader, Blob > | createSaveData (bool resetWorld, std::string_view title) |
| SaveGameHeader | saveGame (bool isAutoSave, bool resetWorld, std::string_view path, std::string_view title) |
| void | autoSave () |
| void | doSavegame (int uSlot) |
| void | saveNewGame () |
| void | quickSaveGame () |
| int | getQuickSaveSlot () |
| void | quickLoadGame () |
| std::string | getCurrentQuickSave () |
Variables | |
| SavegameList * | pSavegameList = new SavegameList |
| std::unordered_map< std::string, Blob > | pMapDeltas |
| void autoSave | ( | ) |
| std::pair< SaveGameHeader, Blob > createSaveData | ( | bool | resetWorld, |
| std::string_view | title | ||
| ) |
| void doSavegame | ( | int | uSlot | ) |
| std::string getCurrentQuickSave | ( | ) |
| int getQuickSaveSlot | ( | ) |
| void loadGame | ( | int | uSlot | ) |
| void quickLoadGame | ( | ) |
| void quickSaveGame | ( | ) |
| SaveGameHeader saveGame | ( | bool | isAutoSave, |
| bool | resetWorld, | ||
| std::string_view | path, | ||
| std::string_view | title | ||
| ) |
| void saveNewGame | ( | ) |
| std::unordered_map<std::string, Blob> pMapDeltas |
Runtime storage for map deltas from the currently loaded save.
| SavegameList* pSavegameList = new SavegameList |