diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-10 14:02:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-10 14:02:33 +0300 |
commit | 02a9ff284ebc4c096f98ad8b23259ea67f82f8e1 (patch) | |
tree | ba63a3d29e5f34421c13ea100cf0e2a8157e3851 /src/resources/iteminfo.cpp | |
parent | fef54b75093d22d2682da5dcd2f6a459ebc37383 (diff) | |
download | ManaVerse-02a9ff284ebc4c096f98ad8b23259ea67f82f8e1.tar.gz ManaVerse-02a9ff284ebc4c096f98ad8b23259ea67f82f8e1.tar.bz2 ManaVerse-02a9ff284ebc4c096f98ad8b23259ea67f82f8e1.tar.xz ManaVerse-02a9ff284ebc4c096f98ad8b23259ea67f82f8e1.zip |
Add method into iteminfo for return link to item.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r-- | src/resources/iteminfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index 9e3e4acfa..bd4a0f704 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -446,3 +446,8 @@ std::string ItemInfo::getIconColor(const ItemColor idx) const return std::string(); return it->second.color; } + +const std::string ItemInfo::getLink() const +{ + return strprintf("[@@%d|%s@@]", mId, mName.c_str()); +} |