private void MakeClientStopArena(GameClientConnection conn) { conn.Send(new ArenaFinishMessage()); conn.ConnectionStatus.CurrentArenaName = null; }
private void MakeClientStartArena(GameClientConnection conn) { var arenaName = _game.SelectedArenaName; var startGameMessage = new StartGameMessage { GameplayMode = _game.DataEngine.GameplayMode.Name, ArenaID = Game.DataEngine.Arena.ID, ArenaToPlay = arenaName, ArenaTimeLeft = Game.DataEngine.ArenaFinishTime == TimeSpan.Zero ? TimeSpan.Zero : Game.DataEngine.ArenaFinishTime - Game.GameTime.TotalRealTime, WallCount = Game.DataEngine.Arena.Gobs.All<AW2.Game.Gobs.Wall>().Count() }; conn.Send(startGameMessage); conn.ConnectionStatus.CurrentArenaName = arenaName; }