From 0e9e6cda40ee0bf739e6c7a6320a81307df7c8b9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 22 Apr 2014 23:00:41 -0400 Subject: MADS: Beginnings of savegame synchronisation --- engines/mads/inventory.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines/mads/inventory.h') diff --git a/engines/mads/inventory.h b/engines/mads/inventory.h index 5c2f925e57..5e3ecd6a69 100644 --- a/engines/mads/inventory.h +++ b/engines/mads/inventory.h @@ -25,6 +25,7 @@ #include "common/scummsys.h" #include "common/array.h" +#include "common/serializer.h" namespace MADS { @@ -49,9 +50,9 @@ public: const byte *_objFolder; // ??? /** - * Loads the data for a given object + * Synchronizes the data for a given object */ - void load(Common::SeekableReadStream &f); + void synchronize(Common::Serializer &s); }; class InventoryObjects: public Common::Array { @@ -71,6 +72,11 @@ public: */ void load(); + /** + * Synchronize the objects list in a savegame + */ + void synchronize(Common::Serializer &s); + /** * Returns the inventory item from the player's inventory */ -- cgit v1.2.3