Pull the master server communication into a ServerTrait

This commit is contained in:
Paul Chote
2010-11-08 16:54:30 +13:00
parent 836b3a598b
commit b77dcd476c
5 changed files with 136 additions and 81 deletions

View File

@@ -46,15 +46,7 @@ namespace OpenRA.Server.Traits
{ "startgame",
s =>
{
Server.GameStarted = true;
foreach( var c in Server.conns )
foreach( var d in Server.conns )
Server.DispatchOrdersToClient( c, d.PlayerIndex, 0x7FFFFFFF, new byte[] { 0xBF } );
Server.DispatchOrders(null, 0,
new ServerOrder("StartGame", "").Serialize());
Server.PingMasterServer();
Server.StartGame();
return true;
}},
{ "lag",