diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-09 23:08:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-09 23:08:16 +0300 |
commit | 248c845b6a09c436f3d8d69a859f1c34d91b7508 (patch) | |
tree | 93747da9c23e6849675f4ad15b12859fc7b6ed6b /src/resources/db/npcdb.cpp | |
parent | 7e437604c8de0784f1343e6e8aa01612a194c466 (diff) | |
download | manaverse-248c845b6a09c436f3d8d69a859f1c34d91b7508.tar.gz manaverse-248c845b6a09c436f3d8d69a859f1c34d91b7508.tar.bz2 manaverse-248c845b6a09c436f3d8d69a859f1c34d91b7508.tar.xz manaverse-248c845b6a09c436f3d8d69a859f1c34d91b7508.zip |
load npc menu.
Diffstat (limited to 'src/resources/db/npcdb.cpp')
-rw-r--r-- | src/resources/db/npcdb.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/npcdb.cpp b/src/resources/db/npcdb.cpp index 2c840ace2..542724e27 100644 --- a/src/resources/db/npcdb.cpp +++ b/src/resources/db/npcdb.cpp @@ -127,6 +127,13 @@ void NPCDB::loadXmlFile(const std::string &fileName) display.particles.push_back(reinterpret_cast<const char*>( spriteNode->xmlChildrenNode->content)); } + else if (xmlNameEqual(spriteNode, "menu")) + { + std::string name = XML::getProperty(spriteNode, "name", ""); + std::string command = XML::getProperty(spriteNode, + "command", ""); + currentInfo->addMenu(name, command); + } } currentInfo->setDisplay(display); |