diff options
Diffstat (limited to 'engines/mads/globals.h')
-rw-r--r-- | engines/mads/globals.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/mads/globals.h b/engines/mads/globals.h index ea327b0045..fa7a630f7f 100644 --- a/engines/mads/globals.h +++ b/engines/mads/globals.h @@ -25,24 +25,30 @@ #include "common/scummsys.h" #include "common/array.h" +#include "common/serializer.h" namespace MADS { class Globals { protected: - Common::Array<int16> _flags; + Common::Array<int16> _data; public: Globals() {} /** * Square brackets operator for accessing flags */ - int16 &operator[](int idx) { return _flags[idx]; } + int16 &operator[](int idx) { return _data[idx]; } /* * Resets all the globals to empty */ void reset(); + + /** + * Synchronize the globals data + */ + void synchronize(Common::Serializer &s); }; } // End of namespace MADS |