Working on save-load system and UI
This commit is contained in:
1 parent
901142385d
commit
d7db0faea3
29 files changed
+708
-180
No files matched your search
+11
@@ -23,6 +23,12 @@
|
||||
#include "GameState.h"
|
||||
namespace ZL {
|
||||
|
||||
struct SaveSlotInfo {
|
||||
std::string locationName;
|
||||
std::string savedAt;
|
||||
bool empty = true;
|
||||
};
|
||||
|
||||
class Game {
|
||||
public:
|
||||
Game();
|
||||
@@ -89,6 +95,11 @@ namespace ZL {
|
||||
|
||||
Location* currentLocation() const;
|
||||
|
||||
void saveGame(int slot);
|
||||
void loadGame(int slot);
|
||||
SaveSlotInfo readSlotInfo(int slot) const;
|
||||
void createLocations();
|
||||
|
||||
int64_t getSyncTimeMs();
|
||||
void processTickCount();
|
||||
void drawScene();
|
||||
|
||||
Reference in new issue
Block a user