summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-18 22:03:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-18 22:03:20 +0300
commitbc94e3dbe141ca257363850077d3faf48338fb87 (patch)
treefa5dd9a6bcc0f4d35fffc3717203c8a45425195f /src/resources/iteminfo.h
parentafb663b60d9e946ce0b23f42e033bb94a99f26a2 (diff)
downloadplus-bc94e3dbe141ca257363850077d3faf48338fb87.tar.gz
plus-bc94e3dbe141ca257363850077d3faf48338fb87.tar.bz2
plus-bc94e3dbe141ca257363850077d3faf48338fb87.tar.xz
plus-bc94e3dbe141ca257363850077d3faf48338fb87.zip
Fix asserts about not found translated item names.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index ad9a2d6ab..3eb19dc80 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -77,6 +77,15 @@ class ItemInfo final
const std::string getName(const ItemColor color)
const A_WARN_UNUSED;
+ void setNameEn(const std::string &name)
+ { mNameEn = name; }
+
+ const std::string &getNameEn() const A_WARN_UNUSED
+ { return mNameEn; }
+
+ const std::string getNameEn(const ItemColor color)
+ const A_WARN_UNUSED;
+
const std::string getLink() const A_WARN_UNUSED;
void setDisplay(const SpriteDisplay &display)
@@ -325,6 +334,7 @@ class ItemInfo final
SpriteDisplay mDisplay; /**< Display info (like icon) */
std::string mName;
+ std::string mNameEn;
std::string mDescription; /**< Short description. */
std::string mEffect; /**< Description of effects. */
std::string mUseButton;