Introduce 2 new functions to g_things

- g_things.findItemTypesByName
- g_things.findItemTypesByString
This commit is contained in:
Ahmed Samy
2013-08-29 17:53:21 +00:00
parent 9234030c1b
commit 3db8f54aa9
3 changed files with 23 additions and 1 deletions

View File

@@ -44,6 +44,8 @@ public:
void addItemType(const ItemTypePtr& itemType);
const ItemTypePtr& findItemTypeByClientId(uint16 id);
const ItemTypePtr& findItemTypeByName(std::string name);
ItemTypeList findItemTypesByName(std::string name);
ItemTypeList findItemTypesByString(std::string str);
const ThingTypePtr& getNullThingType() { return m_nullThingType; }
const ItemTypePtr& getNullItemType() { return m_nullItemType; }