From 862e8f821789014b6167f37976b80694d6d310e3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Apr 2017 04:44:53 +0300 Subject: Add item options into item and get it from server. --- src/resources/item/item.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/resources/item/item.h') diff --git a/src/resources/item/item.h b/src/resources/item/item.h index 2a638f68a..f1712d26a 100644 --- a/src/resources/item/item.h +++ b/src/resources/item/item.h @@ -40,6 +40,8 @@ class Image; +struct ItemOptionsList; + /** * Represents one or more instances of a certain item type. */ @@ -211,6 +213,11 @@ class Item notfinal const int *getCards() const noexcept2 A_WARN_UNUSED { return mCards; } + void setOptions(const ItemOptionsList *const options); + + const ItemOptionsList *getOptions() const noexcept2 A_WARN_UNUSED + { return mOptions; } + void setType(const ItemTypeT type) noexcept2 { mType = type; } @@ -245,6 +252,7 @@ class Item notfinal std::string mDescription; std::map mTags; int mCards[maxCards]; + const ItemOptionsList *mOptions; uint8_t mRefine; /**< Item refine level. */ int mInvIndex; /**< Inventory index. */ ItemTypeT mType; /**< Item type. */ -- cgit v1.2.3-70-g09d2