public void getGameOverMsg(GameOverMsg info) { if (specs.isInTournament == false) { return; } AlbotRunningTournamentModule.handleGameResult(specs.tournamentID, specs.tournamentRoundID, info); }
private void broadcastUpdate(int skipPeerID = -1) { if (state != PreGameState.Lobby) { return; } PreGameRoomMsg msg = newUpdate(); foreach (IPeer p in connectedPeers.Select(p => p.peer)) { if (p.Id != skipPeerID) { p.SendMessage((short)ServerCommProtocl.UpdatePreGame, msg); } } if (specs.isInTournament) { AlbotRunningTournamentModule.handleUpdateRound(specs.tournamentID, specs.tournamentRoundID); } }