[Orxonox-commit 3556] r8242 - code/branches/masterserver2/src/libraries/network
smerkli at orxonox.net
smerkli at orxonox.net
Thu Apr 14 15:45:24 CEST 2011
Author: smerkli
Date: 2011-04-14 15:45:24 +0200 (Thu, 14 Apr 2011)
New Revision: 8242
Modified:
code/branches/masterserver2/src/libraries/network/MasterServer.cc
Log:
Implemented a list servers command for the masterserver, more commands to come next week.
Modified: code/branches/masterserver2/src/libraries/network/MasterServer.cc
===================================================================
--- code/branches/masterserver2/src/libraries/network/MasterServer.cc 2011-04-14 13:43:41 UTC (rev 8241)
+++ code/branches/masterserver2/src/libraries/network/MasterServer.cc 2011-04-14 13:45:24 UTC (rev 8242)
@@ -34,11 +34,18 @@
namespace orxonox
{
+ /*** MACROS ***/
/* commands for the terminal interface */
SetConsoleCommand( "ms-listservers", &MasterServer::listServers );
+ //SetConsoleCommand( "ms-delserver", &MasterServer::delServer );
+ //SetConsoleCommand( "ms-serverinfo", &MasterServer::serverInfo );
+ /* forward declaration so the linker doesn't complain */
MasterServer *MasterServer::instance = NULL;
+
+
+
/* command: list servers */
void
MasterServer::listServers( void )
More information about the Orxonox-commit
mailing list