ManaPlus
|
Functions | |
void | load () |
void | unload () |
BeingInfo * | get (const BeingTypeId id) |
BeingTypeId | getAvatarFor (const BeingTypeId id) |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
NPC information database.
BeingInfo * NPCDB::get | ( | const BeingTypeId | id | ) |
Definition at line 188 of file npcdb.cpp.
References anonymous_namespace{npcdb.cpp}::mNPCInfos, reportAlways, toInt, and BeingInfo::unknown.
Referenced by PopupMenu::addBeingMenu(), EAthena::CashShopRecv::processCashShopOpen(), EAthena::MarketRecv::processMarketOpen(), EAthena::BuySellRecv::processNpcBuy(), and Being::setSubtype().
BeingTypeId NPCDB::getAvatarFor | ( | const BeingTypeId | id | ) |
Definition at line 201 of file npcdb.cpp.
References BeingTypeId_zero, AttributesEnum::get(), and Actions::info().
Referenced by NpcDialog::postInit().
void NPCDB::load | ( | ) |
Definition at line 48 of file npcdb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{npcdb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void NPCDB::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 62 of file npcdb.cpp.
References _, BeingInfo::addMenu(), BeingTypeId_zero, CAST_S32, UnitsDb::existsCurrency(), fileName, for_each_xml_child_node, fromInt, XML::getBoolProperty(), BeingInfo::getMenu(), XML::getProperty(), Configuration::getStringValue(), XML::langProperty(), loadXmlFile(), Logger::log(), logger, anonymous_namespace{npcdb.cpp}::mLoaded, anonymous_namespace{npcdb.cpp}::mNPCInfos, SpriteDisplay::particles, paths, BeingCommon::readBasicAttributes(), BeingCommon::readWalkingAttributes(), reportAlways, XML::Document::rootNode(), BeingInfo::setAllowDelete(), BeingInfo::setAllowEquipment(), BeingInfo::setAvatarId(), BeingInfo::setCurrency(), BeingInfo::setDeadSortOffsetY(), BeingInfo::setDisplay(), BeingInfo::setTargetSelection(), SpriteReference::sprite, SpriteDisplay::sprites, toInt, UseVirtFs_true, and SpriteReference::variant.
void NPCDB::unload | ( | ) |
Definition at line 179 of file npcdb.cpp.
References delete_all(), Logger::log1(), logger, anonymous_namespace{npcdb.cpp}::mLoaded, and anonymous_namespace{npcdb.cpp}::mNPCInfos.
Referenced by DbManager::unloadDb().