public static void forceIndexWinner(RoundID id, int index) { Msf.Connection.SendMessage((short)CustomMasterServerMSG.tournamentRoundForceWinner, new TournamentForceWinnerMessage() { tournamentID = singleton.tournamentInfo.tournamentID, roundID = id, winIndex = index }); }
public static void handleGameResult(string tournamentID, RoundID roundID, GameOverMsg result) { RunningTournamentGame game; if (singleton.findGame(tournamentID, out game)) { game.reportRoundResult(roundID, result); } }
private void startGame(RoundID id) { if (runningTournament == false) { return; } Msf.Connection.SendMessage((short)CustomMasterServerMSG.tournamentRoundStarted, new TournamentPreGameInfo() { tournamentID = tournamentInfo.tournamentID, roundID = id }); }
private void openRoundLobby(RoundID id, bool forceRestart = false) { if (runningTournament == false) { return; } Msf.Connection.SendMessage((short)CustomMasterServerMSG.tournamentRoundPreStarted, new TournamentPreGameInfo() { tournamentID = tournamentInfo.tournamentID, roundID = id, forceRestart = forceRestart }); }
private void updateRound(string tournamentID, RoundID roundID) { RunningTournamentGame game; if (findGame(tournamentID, out game)) { game.updateRound(roundID); } else { Debug.LogError("Did not find game: " + tournamentID + " for round " + roundID.col + "." + roundID.row); } }
public void init(TournamentRound serverRound, RoundType type) { this.serverRound = serverRound; this.type = type; id = serverRound.getGameID(); players = serverRound.getPlayers(); state = serverRound.getState(); preGameRoomID = serverRound.preGameRoomID; initPlayerSlotTypes(); setPlayerSlots(); initClicks(); initPlayerSlots(); }
public static void handleUpdateRound(string tournamentID, RoundID roundID) { singleton.updateRound(tournamentID, roundID); }
public static void forceRestartRoundLobby(RoundID id) { singleton.openRoundLobby(id, true); }
public static void startRoundLobby(RoundID id) { singleton.openRoundLobby(id); }
public static void startRoundGame(RoundID id) { singleton.startGame(id); }