diff options
author | David Athay <ko2fan@gmail.com> | 2009-01-14 14:11:35 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-01-14 14:11:35 +0000 |
commit | 451b5887beae88c1f3c139a35d23e5521e896e7d (patch) | |
tree | e1d5f5058311a1121d1eb2c122eb3d1eb5cee372 /src/resources/itemdb.h | |
parent | ac3d5127cb7f3e3a4f5fa7a3ceb6f7c8de6808be (diff) | |
download | mana-451b5887beae88c1f3c139a35d23e5521e896e7d.tar.gz mana-451b5887beae88c1f3c139a35d23e5521e896e7d.tar.bz2 mana-451b5887beae88c1f3c139a35d23e5521e896e7d.tar.xz mana-451b5887beae88c1f3c139a35d23e5521e896e7d.zip |
Added linking to item's just using [Item Name] in chat
Diffstat (limited to 'src/resources/itemdb.h')
-rw-r--r-- | src/resources/itemdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/itemdb.h b/src/resources/itemdb.h index 20756a52..1d814f34 100644 --- a/src/resources/itemdb.h +++ b/src/resources/itemdb.h @@ -42,10 +42,13 @@ namespace ItemDB void unload(); const ItemInfo& get(int id); + const ItemInfo& get(const std::string &name); // Items database typedef std::map<int, ItemInfo*> ItemInfos; + typedef std::map<std::string, ItemInfo*> NamedItemInfos; typedef ItemInfos::iterator ItemInfoIterator; + typedef NamedItemInfos::iterator NamedItemInfoIterator; } #endif |