summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/itemdb.h')
-rw-r--r--src/resources/itemdb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/itemdb.h b/src/resources/itemdb.h
index 03fb1eed..08a7acd0 100644
--- a/src/resources/itemdb.h
+++ b/src/resources/itemdb.h
@@ -22,9 +22,11 @@
#ifndef ITEM_MANAGER_H
#define ITEM_MANAGER_H
+#include <map>
+
#include "iteminfo.h"
-#include <map>
+class ItemInfo;
/**
* The namespace that holds the item information.
@@ -42,10 +44,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