added more save/load code
This commit is contained in:
parent
64e1113686
commit
c721d2579c
2 changed files with 87 additions and 0 deletions
8
engine.h
8
engine.h
|
@ -23,6 +23,7 @@
|
|||
#include <cstdlib>
|
||||
#include <list>
|
||||
#include <SDL_keysym.h>
|
||||
#include <zlib.h>
|
||||
|
||||
class Actor;
|
||||
|
||||
|
@ -140,9 +141,16 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void savegameSave();
|
||||
void savegameRestore();
|
||||
static void savegameGzread(void *data, int32 size);
|
||||
static void savegameGzwrite(void *data, int32 size);
|
||||
void savegameCallback(void *func);
|
||||
|
||||
bool _savegameLoadRequest;
|
||||
bool _savegameSaveRequest;
|
||||
char *_savegameFileName;
|
||||
gzFile _savegameFileHandle;
|
||||
|
||||
private:
|
||||
static Engine *instance_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue