aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2/types.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-20 21:20:22 -0700
committerPaul Gilbert2019-06-22 14:40:49 -0700
commitad1cecaeac5d54b0973d6c7edce8181cb965ff68 (patch)
tree9ffc7a6a3f6e5e1e6f33ce997662a486fd122be4 /engines/glk/alan2/types.h
parentdf7465232108c15ca613db0b5e709e34378dbd8c (diff)
downloadscummvm-rg350-ad1cecaeac5d54b0973d6c7edce8181cb965ff68.tar.gz
scummvm-rg350-ad1cecaeac5d54b0973d6c7edce8181cb965ff68.tar.bz2
scummvm-rg350-ad1cecaeac5d54b0973d6c7edce8181cb965ff68.zip
GLK: ALAN2: Added savegame code
Diffstat (limited to 'engines/glk/alan2/types.h')
-rw-r--r--engines/glk/alan2/types.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/glk/alan2/types.h b/engines/glk/alan2/types.h
index 11a17a539d..699dd0e149 100644
--- a/engines/glk/alan2/types.h
+++ b/engines/glk/alan2/types.h
@@ -25,6 +25,8 @@
#include "glk/alan2/sysdep.h"
#include "glk/alan2/acode.h"
+#include "common/serializer.h"
+#include "common/stream.h"
namespace Glk {
namespace Alan2 {
@@ -89,6 +91,11 @@ struct CurVars {
tick,
score,
visits;
+
+ /**
+ * Read or write data to/from a save file
+ */
+ void synchronize(Common::Serializer &s);
};
#include "common/pack-start.h" // START STRUCT PACKING
@@ -246,6 +253,11 @@ struct EvtqElem { /* EVENT QUEUE ELEMENT */
int time;
int event;
int where;
+
+ /**
+ * Read or write data to/from a save file
+ */
+ void synchronize(Common::Serializer &s);
} PACKED_STRUCT;
struct IniElem { /* STRING INITIALISATION TABLE */