ManaPlus
|
Functions | |
void | load () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
void | unload () |
BeingInfo * | get (const BeingTypeId id) |
BeingInfo * SkillUnitDb::get | ( | const BeingTypeId | id | ) |
Definition at line 150 of file skillunitdb.cpp.
References anonymous_namespace{skillunitdb.cpp}::mSkillUnitInfos, reportAlways, toInt, and BeingInfo::unknown.
Referenced by Being::setSubtype().
void SkillUnitDb::load | ( | ) |
Definition at line 45 of file skillunitdb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{skillunitdb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void SkillUnitDb::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 57 of file skillunitdb.cpp.
References _, BeingTypeId_negOne, fileName, for_each_xml_child_node, fromInt, XML::getBoolProperty(), XML::getProperty(), Configuration::getStringValue(), XML::langProperty(), loadXmlFile(), Logger::log(), logger, anonymous_namespace{skillunitdb.cpp}::mSkillUnitInfos, SpriteDisplay::particles, paths, BeingCommon::readBasicAttributes(), BeingCommon::readWalkingAttributes(), reportAlways, XML::Document::rootNode(), BeingInfo::setDeadSortOffsetY(), BeingInfo::setDisplay(), BeingInfo::setName(), BeingInfo::setTargetSelection(), SpriteReference::sprite, SpriteDisplay::sprites, UseVirtFs_true, and SpriteReference::variant.
void SkillUnitDb::unload | ( | ) |
Definition at line 141 of file skillunitdb.cpp.
References delete_all(), Logger::log1(), logger, anonymous_namespace{skillunitdb.cpp}::mLoaded, and anonymous_namespace{skillunitdb.cpp}::mSkillUnitInfos.
Referenced by DbManager::unloadDb().