diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-21 04:44:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-21 20:37:02 +0300 |
commit | 862e8f821789014b6167f37976b80694d6d310e3 (patch) | |
tree | 7c4d77a370f4da3d84a649b0d10e4d0a05725e6a /src/resources/item/item.h | |
parent | 62fa051ace7097e78134d46505070a70c08e128f (diff) | |
download | plus-862e8f821789014b6167f37976b80694d6d310e3.tar.gz plus-862e8f821789014b6167f37976b80694d6d310e3.tar.bz2 plus-862e8f821789014b6167f37976b80694d6d310e3.tar.xz plus-862e8f821789014b6167f37976b80694d6d310e3.zip |
Add item options into item and get it from server.
Diffstat (limited to 'src/resources/item/item.h')
-rw-r--r-- | src/resources/item/item.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <int, int> mTags; int mCards[maxCards]; + const ItemOptionsList *mOptions; uint8_t mRefine; /**< Item refine level. */ int mInvIndex; /**< Inventory index. */ ItemTypeT mType; /**< Item type. */ |