OpenEnroth cf228e9
Loading...
Searching...
No Matches
Classes | Functions | Variables
SaveLoad.h File Reference
#include <array>
#include <unordered_map>
#include <string>
#include <utility>
#include "Engine/Graphics/Overlays.h"
#include "Engine/Party.h"
#include "Engine/Tables/NPCTable.h"
#include "Engine/Time/Time.h"
#include "Engine/Time/Timer.h"
#include "Utility/Memory/Blob.h"

Classes

struct  SaveGameHeader
 
struct  SaveGame
 
struct  SaveGameLite
 
struct  SavegameList
 

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

constexpr int MAX_SAVE_SLOTS = 45
 
std::unordered_map< std::string, BlobpMapDeltas
 
SavegameListpSavegameList
 

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

◆ MAX_SAVE_SLOTS

constexpr int MAX_SAVE_SLOTS = 45
constexpr

◆ pMapDeltas

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

Runtime storage for map deltas from the currently loaded save.

◆ pSavegameList

SavegameList* pSavegameList
extern