diff options
author | Paul Gilbert | 2014-04-22 23:00:41 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-22 23:00:41 -0400 |
commit | 0e9e6cda40ee0bf739e6c7a6320a81307df7c8b9 (patch) | |
tree | d69131833413f6bd75ef84e95c64cc54da568e8e /engines/mads/inventory.h | |
parent | 3f1a49b567aac10fe8a195f7a2b8e07603470a72 (diff) | |
download | scummvm-rg350-0e9e6cda40ee0bf739e6c7a6320a81307df7c8b9.tar.gz scummvm-rg350-0e9e6cda40ee0bf739e6c7a6320a81307df7c8b9.tar.bz2 scummvm-rg350-0e9e6cda40ee0bf739e6c7a6320a81307df7c8b9.zip |
MADS: Beginnings of savegame synchronisation
Diffstat (limited to 'engines/mads/inventory.h')
-rw-r--r-- | engines/mads/inventory.h | 10 |
1 files changed, 8 insertions, 2 deletions
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<InventoryObject> { @@ -72,6 +73,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 */ InventoryObject &getItem(int itemIndex) { |