58 XmlNodeConstPtrConst root = doc->
rootNode();
60 if ((root ==
nullptr) || !xmlNameEqual(root,
"chars"))
62 logger->
log(
"CharDB: Failed to parse %s.",
70 if (xmlNameEqual(node,
"haircolor"))
74 else if (xmlNameEqual(node,
"hairstyle"))
78 else if (xmlNameEqual(node,
"look"))
82 else if (xmlNameEqual(node,
"stat"))
87 else if (xmlNameEqual(node,
"item"))
96 const std::string cardName =
strprintf(
"card%d", f + 1);
104 else if (xmlNameEqual(node,
"race"))
std::string getStringValue(const std::string &key) const
void log(const char *const log_text,...)
void log1(const char *const log_text)
#define for_each_xml_child_node(var, parent)
const std::vector< BeingSlot > & getDefaultItems()
unsigned getMinHairStyle()
void loadMinMax(const xmlNodePtr node, unsigned *const min, unsigned *const max)
unsigned getMaxHairStyle()
unsigned getMaxHairColor()
unsigned getMinHairColor()
int getProperty(const xmlNodePtr node, const char *const name, int def)
std::vector< BeingSlot > mDefaultItems
const bool SkipError_false
std::string strprintf(const char *const format,...)
const bool UseVirtFs_true