World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
SaveLoad.h
См. документацию.
1 #pragma once
2 #include <array>
3 
4 #include "Engine/Time.h"
5 #include "Engine/Strings.h"
6 
7 struct SavegameList {
8  static void Initialize();
9  SavegameList();
10 
11  void Reset();
12 
13  std::array<String, 45> pFileList;
14 };
15 
16 /* 244 */
17 #pragma pack(push, 1)
19  char pName[20];
20  char pLocationName[20];
21  GameTime playing_time; // unsigned __int64 uWordTime;
22  char field_30[52];
23 };
24 #pragma pack(pop)
25 
26 void LoadGame(unsigned int uSlot);
27 void SaveGame(bool IsAutoSAve, bool NotSaveWorld);
28 void DoSavegame(unsigned int uSlot);
30 void SaveNewGame();
31 
32 extern unsigned int uNumSavegameFiles;
33 constexpr unsigned int MAX_SAVE_SLOTS = 45;
34 extern std::array<unsigned int, MAX_SAVE_SLOTS> pSavegameUsedSlots;
35 extern struct SavegameList *pSavegameList;
36 extern std::array<SavegameHeader, MAX_SAVE_SLOTS> pSavegameHeader;
37 
38 extern std::array<class Image *, MAX_SAVE_SLOTS> pSavegameThumbnails;
pSavegameList
struct SavegameList * pSavegameList
Definition: SaveLoad.cpp:41
SaveGame
void SaveGame(bool IsAutoSAve, bool NotSaveWorld)
Definition: SaveLoad.cpp:238
Initialize_GamesLOD_NewLOD
bool Initialize_GamesLOD_NewLOD()
Definition: LOD.cpp:1218
SavegameHeader::pLocationName
char pLocationName[20]
Definition: SaveLoad.h:20
uNumSavegameFiles
unsigned int uNumSavegameFiles
Definition: SaveLoad.cpp:42
LoadGame
void LoadGame(unsigned int uSlot)
Definition: SaveLoad.cpp:77
SavegameList::Initialize
static void Initialize()
Definition: SaveLoad.cpp:547
SavegameList
Definition: SaveLoad.h:7
SavegameList::Reset
void Reset()
Definition: SaveLoad.cpp:560
SavegameList::SavegameList
SavegameList()
Definition: SaveLoad.cpp:558
MAX_SAVE_SLOTS
constexpr unsigned int MAX_SAVE_SLOTS
Definition: SaveLoad.h:33
DoSavegame
void DoSavegame(unsigned int uSlot)
Definition: SaveLoad.cpp:514
SavegameHeader::playing_time
GameTime playing_time
Definition: SaveLoad.h:21
pSavegameThumbnails
std::array< class Image *, MAX_SAVE_SLOTS > pSavegameThumbnails
Definition: SaveLoad.cpp:44
SavegameHeader::field_30
char field_30[52]
Definition: SaveLoad.h:22
SaveNewGame
void SaveNewGame()
Definition: SaveLoad.cpp:566
SavegameHeader::pName
char pName[20]
Definition: SaveLoad.h:19
SavegameHeader
Definition: SaveLoad.h:18
pSavegameUsedSlots
std::array< unsigned int, MAX_SAVE_SLOTS > pSavegameUsedSlots
Definition: SaveLoad.cpp:43
pSavegameHeader
std::array< SavegameHeader, MAX_SAVE_SLOTS > pSavegameHeader
Definition: SaveLoad.cpp:45
SavegameList::pFileList
std::array< String, 45 > pFileList
Definition: SaveLoad.h:13
GameTime
Definition: Time.h:14
Time.h
Strings.h