OpenEnroth cf228e9
Loading...
Searching...
No Matches
Functions | Variables
SaveLoad.cpp File Reference
#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, BlobcreateSaveData (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

SavegameListpSavegameList = new SavegameList
 
std::unordered_map< std::string, BlobpMapDeltas
 

Function Documentation

◆ autoSave()

void autoSave ( )

◆ createSaveData()

std::pair< SaveGameHeader, Blob > createSaveData ( bool  resetWorld,
std::string_view  title 
)

◆ doSavegame()

void doSavegame ( int  uSlot)

◆ getCurrentQuickSave()

std::string getCurrentQuickSave ( )

◆ getQuickSaveSlot()

int getQuickSaveSlot ( )

◆ loadGame()

void loadGame ( int  uSlot)

◆ quickLoadGame()

void quickLoadGame ( )

◆ quickSaveGame()

void quickSaveGame ( )

◆ saveGame()

SaveGameHeader saveGame ( bool  isAutoSave,
bool  resetWorld,
std::string_view  path,
std::string_view  title 
)

◆ saveNewGame()

void saveNewGame ( )

Variable Documentation

◆ pMapDeltas

std::unordered_map<std::string, Blob> pMapDeltas

Runtime storage for map deltas from the currently loaded save.

◆ pSavegameList

SavegameList* pSavegameList = new SavegameList