summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 21:38:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 21:38:12 +0300
commitfb062d9f90d44e279ce02985c3f4f4335550cf87 (patch)
tree4ae1fec555e1f065018b2ac8d8650130c3060c40 /src/actions
parent015a260c6444e74579401dfe41e39592b2201d36 (diff)
downloadmanaverse-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.gz
manaverse-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.bz2
manaverse-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.xz
manaverse-fb062d9f90d44e279ce02985c3f4f4335550cf87.zip
Move chat command /all into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp10
-rw-r--r--src/actions/commands.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 103248aa8..797c75edb 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -262,4 +262,14 @@ impHandler0(present)
return false;
}
+impHandler0(printAll)
+{
+ if (actorManager)
+ {
+ actorManager->printAllToChat();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index bd9a7148c..02810286c 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -37,6 +37,7 @@ namespace Actions
decHandler(chatEnemy);
decHandler(chatErase);
decHandler(present);
+ decHandler(printAll);
} // namespace Actions
#undef decHandler