Go to the documentation of this file.
23 #ifndef THINGTYPEMANAGER_H
24 #define THINGTYPEMANAGER_H
40 void loadOtb(
const std::string& file);
41 void loadXml(
const std::string& file);
44 void saveDat(std::string fileName);
std::vector< ItemTypePtr > ItemTypeList
ThingType * rawGetThingType(uint16 id, ThingCategory category)
bool loadDat(std::string file)
ItemTypeList findItemTypesByString(std::string name)
const ItemTypePtr & findItemTypeByName(std::string name)
bool loadOtml(std::string file)
const ItemTypePtr & getItemType(uint16 id)
const ThingTypePtr & getNullThingType()
ThingTypeManager g_things
const ItemTypeList & getItemTypes()
const ThingTypeList & getThingTypes(ThingCategory category)
uint16 getContentRevision()
void loadXml(const std::string &file)
ItemType * rawGetItemType(uint16 id)
bool isValidOtbId(uint16 id)
const ItemTypePtr & findItemTypeByClientId(uint16 id)
ItemTypeList findItemTypeByCategory(ItemCategory category)
const ItemTypePtr & getNullItemType()
const ThingTypePtr & getThingType(uint16 id, ThingCategory category)
uint32 getOtbMinorVersion()
void loadOtb(const std::string &file)
std::vector< ThingTypePtr > ThingTypeList
void addItemType(const ItemTypePtr &itemType)
uint32 getOtbMajorVersion()
void parseItemType(uint16 id, TiXmlElement *elem)
ThingTypeList findThingTypeByAttr(ThingAttr attr, ThingCategory category)
ItemTypeList findItemTypesByName(std::string name)
void saveDat(std::string fileName)
bool isValidDatId(uint16 id, ThingCategory category)