From de068425200d5254181c6806ebeb4a72d68895ec Mon Sep 17 00:00:00 2001 From: David Athay Date: Wed, 14 Jan 2009 14:11:35 +0000 Subject: Added linking to item's just using [Item Name] in chat --- src/resources/itemdb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/itemdb.h') 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 ItemInfos; + typedef std::map NamedItemInfos; typedef ItemInfos::iterator ItemInfoIterator; + typedef NamedItemInfos::iterator NamedItemInfoIterator; } #endif -- cgit v1.2.3-70-g09d2