ManaPlus
|
Functions | |
void | load () |
void | unload () |
BeingInfo * | get (const BeingTypeId id) |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
BeingInfo * AvatarDB::get | ( | const BeingTypeId | id | ) |
Definition at line 141 of file avatardb.cpp.
References anonymous_namespace{avatardb.cpp}::mAvatarInfos, and BeingInfo::unknown.
Referenced by Being::setSubtype(), and NpcDialog::showAvatar().
void AvatarDB::load | ( | ) |
Definition at line 46 of file avatardb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{avatardb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by ItemDB::get(), ColorDB::getHairColorName(), Loader::getImage(), Loader::getMusic(), Loader::getRescaled(), Loader::getShader(), Loader::getShaderProgram(), Loader::getSoundEffect(), Loader::getSprite(), Loader::getSubImage(), Loader::getSubImageSet(), Loader::getXml(), DbManager::loadDb(), Theme::loadRect(), Theme::loadSkinRect(), and PopupMenu::showPlayerGMCommands().
void AvatarDB::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 57 of file avatardb.cpp.
References _, fileName, for_each_xml_child_node, fromInt, XML::getProperty(), XML::langProperty(), loadXmlFile(), Logger::log(), logger, anonymous_namespace{avatardb.cpp}::mAvatarInfos, anonymous_namespace{avatardb.cpp}::mLoaded, XML::Document::rootNode(), BeingInfo::setDisplay(), BeingInfo::setHeight(), BeingInfo::setName(), BeingInfo::setTargetOffsetX(), BeingInfo::setTargetOffsetY(), BeingInfo::setWidth(), SpriteReference::sprite, SpriteDisplay::sprites, UseVirtFs_true, and SpriteReference::variant.
void AvatarDB::unload | ( | ) |
Definition at line 133 of file avatardb.cpp.
References delete_all(), Logger::log1(), logger, anonymous_namespace{avatardb.cpp}::mAvatarInfos, and anonymous_namespace{avatardb.cpp}::mLoaded.
Referenced by DbManager::unloadDb().