summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-09 23:08:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-09 23:08:16 +0300
commit248c845b6a09c436f3d8d69a859f1c34d91b7508 (patch)
tree93747da9c23e6849675f4ad15b12859fc7b6ed6b /src/resources/beinginfo.cpp
parent7e437604c8de0784f1343e6e8aa01612a194c466 (diff)
downloadmv-248c845b6a09c436f3d8d69a859f1c34d91b7508.tar.gz
mv-248c845b6a09c436f3d8d69a859f1c34d91b7508.tar.bz2
mv-248c845b6a09c436f3d8d69a859f1c34d91b7508.tar.xz
mv-248c845b6a09c436f3d8d69a859f1c34d91b7508.zip
load npc menu.
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r--src/resources/beinginfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp
index 5f1704b88..8b9d72376 100644
--- a/src/resources/beinginfo.cpp
+++ b/src/resources/beinginfo.cpp
@@ -214,3 +214,8 @@ std::string BeingInfo::getColor(const int idx) const
return std::string();
return it->second.color;
}
+
+void BeingInfo::addMenu(const std::string &name, const std::string &command)
+{
+ mMenu.push_back(BeingMenuItem(name, command));
+}