Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-09 14:11:44 +0000
committerStijn Buys <ingar@osirion.org>2011-07-09 14:11:44 +0000
commite942db1c8d87b7db286545d72c604e879f7aeab0 (patch)
tree4b07ef3422ee265156e020707c3bc96ecd9ed1e0 /src/core/application.cc
parentf39aec30f0e5c6f466681ed34bffd41150976ab9 (diff)
Cleanup of the messaging interface.
Diffstat (limited to 'src/core/application.cc')
-rw-r--r--src/core/application.cc22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/core/application.cc b/src/core/application.cc
index 38c39a1..2455f85 100644
--- a/src/core/application.cc
+++ b/src/core/application.cc
@@ -452,7 +452,21 @@ void Application::load_commandline(int count, char **arguments)
void Application::notify_message(const core::Message::Channel channel, const std::string &message)
{
- con_print << message << std::endl;
+ switch (channel) {
+ case core::Message::Info: // Info message
+ case core::Message::Local: // Chat message in the local zone
+ case core::Message::Public: // Public chat message
+ case core::Message::Private: // Private chat message
+ case core::Message::RCon: // RCon message
+ con_print << message << std::endl;
+ break;
+
+ case core::Message::Sound: // Sound event
+ break;
+
+ default:
+ break;
+ }
}
void Application::notify_loader(const std::string &message)
@@ -461,12 +475,6 @@ void Application::notify_loader(const std::string &message)
// used by the client to udpate the loader screen
}
-void Application::notify_sound(const char *name)
-{
- // the default implementation does nothing.
- // Dedicated servers don't need sounds
-}
-
void Application::notify_zonechange()
{
// the default implementation does nothing.