diff options
author | David Athay <ko2fan@gmail.com> | 2009-01-14 14:11:35 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-20 11:04:37 -0700 |
commit | de068425200d5254181c6806ebeb4a72d68895ec (patch) | |
tree | 7ec17c0bbd7a2654dbad678cd129575ca74f8dcd /src/resources/itemdb.h | |
parent | 088ccc74d9b8695c906eaabae8e4019ebf55c83c (diff) | |
download | mana-de068425200d5254181c6806ebeb4a72d68895ec.tar.gz mana-de068425200d5254181c6806ebeb4a72d68895ec.tar.bz2 mana-de068425200d5254181c6806ebeb4a72d68895ec.tar.xz mana-de068425200d5254181c6806ebeb4a72d68895ec.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 9b661a60..2cc23ec9 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 |