ManaPlus
|
Typedefs | |
typedef std::map< std::string, NpcDialogInfo * > | Dialogs |
typedef Dialogs::iterator | DialogsIter |
Functions | |
void | load () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
void | unload () |
void | deleteDialog (const std::string &name) |
NpcDialogInfo * | getDialog (const std::string &name) |
Color information database.
typedef std::map<std::string, NpcDialogInfo*> NpcDialogDB::Dialogs |
Definition at line 56 of file npcdialogdb.h.
typedef Dialogs::iterator NpcDialogDB::DialogsIter |
Definition at line 57 of file npcdialogdb.h.
void NpcDialogDB::deleteDialog | ( | const std::string & | name | ) |
Definition at line 193 of file npcdialogdb.cpp.
References NpcDialogMenuInfo::buttons, delete_all(), NpcDialogMenuInfo::images, anonymous_namespace{npcdialogdb.cpp}::mDialogs, NpcDialogInfo::menu, and NpcDialogMenuInfo::texts.
Referenced by loadXmlFile().
NpcDialogInfo * NpcDialogDB::getDialog | ( | const std::string & | name | ) |
Definition at line 224 of file npcdialogdb.cpp.
References anonymous_namespace{npcdialogdb.cpp}::mDialogs.
Referenced by NpcDialog::setSkin().
void NpcDialogDB::load | ( | ) |
Loads the map remap data from maps\remap.xml
.
Definition at line 40 of file npcdialogdb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{npcdialogdb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void NpcDialogDB::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 151 of file npcdialogdb.cpp.
References deleteDialog(), fileName, for_each_xml_child_node, XML::getBoolProperty(), XML::getProperty(), NpcDialogInfo::hideText, loadNpcDialog(), loadXmlFile(), anonymous_namespace{npcdialogdb.cpp}::mDialogs, NpcDialogInfo::name, XML::Document::rootNode(), and UseVirtFs_true.
void NpcDialogDB::unload | ( | ) |
Clear the remap data
Definition at line 207 of file npcdialogdb.cpp.
References NpcDialogMenuInfo::buttons, delete_all(), FOR_EACH, NpcDialogMenuInfo::images, Logger::log1(), logger, anonymous_namespace{npcdialogdb.cpp}::mDialogs, NpcDialogInfo::menu, anonymous_namespace{npcdialogdb.cpp}::mLoaded, and NpcDialogMenuInfo::texts.
Referenced by DbManager::unloadDb().