22 #ifndef MM1_DATA_TREASURE_H 23 #define MM1_DATA_TREASURE_H 25 #include "common/scummsys.h" 26 #include "common/serializer.h" 32 CLOTH_SACK = 0, LEATHER_SACK = 1, WOODEN_BOX = 2,
33 WOODEN_CHEST = 3, IRON_BOX = 4, IRON_CHEST = 5,
34 SILVER_BOX = 6, SILVER_CHEST = 7, GOLD_BOX = 8,
35 GOLD_CHEST = 9, BLACK_BOX = 10
42 byte &_trapType = _data[1];
43 byte &_container = _data[2];
44 byte *
const _items = &_data[3];
50 byte &operator[](uint i);
81 return READ_LE_UINT16(&_data[6]);
88 WRITE_LE_UINT16(&_data[6], amount);
void synchronize(Common::Serializer &s)
void setGems(byte amount)
Definition: treasure.h:101
Definition: serializer.h:79
byte getGems() const
Definition: treasure.h:94
Definition: detection.h:27
Definition: treasure.h:38
void setGold(uint16 amount)
Definition: treasure.h:87
uint16 getGold() const
Definition: treasure.h:80