diff options
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) { |