summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-03 15:09:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-03 17:03:33 +0300
commit9d33bb1bdaf0f19ccaa742a316af9620b05b825d (patch)
tree19949d567f0bbf4017475ffd824be66b36b5f7b9 /src/resources/iteminfo.h
parent284acf8f76bd2201bd64b847a2564206f77a4278 (diff)
downloadmanaplus-9d33bb1bdaf0f19ccaa742a316af9620b05b825d.tar.gz
manaplus-9d33bb1bdaf0f19ccaa742a316af9620b05b825d.tar.bz2
manaplus-9d33bb1bdaf0f19ccaa742a316af9620b05b825d.tar.xz
manaplus-9d33bb1bdaf0f19ccaa742a316af9620b05b825d.zip
Add into items.xml option useButton.
For now unused.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index eb22b10d5..4c8ece517 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -96,6 +96,12 @@ class ItemInfo final
void setType(const ItemType::Type type)
{ mType = type; }
+ void setUseButton(const std::string &str)
+ { mUseButton = str; }
+
+ const std::string &getUseButton() const A_WARN_UNUSED
+ { return mUseButton; }
+
ItemType::Type getType() const A_WARN_UNUSED
{ return mType; }
@@ -267,6 +273,7 @@ class ItemInfo final
std::string mName;
std::string mDescription; /**< Short description. */
std::string mEffect; /**< Description of effects. */
+ std::string mUseButton;
ItemType::Type mType; /**< Item type. */
int mWeight; /**< Weight in grams. */
int mView; /**< Item ID of how this item looks. */