public static void reOpenTournament() { ClientUIStateManager.requestGotoState(ClientUIStates.PlayingTournament, () => { initCurrentTree(storedInitMsg); storedUpdates.ForEach(u => currentTree.updateRounds(u.rounds, false)); currentTree.renderVisualTree(); }); }
private void handleTournamentUpdate(IIncommingMessage rawMsg) { TournamentTreeUpdate update = rawMsg.Deserialize <TournamentTreeUpdate>(); singleton.allUpdates.Add(update); currentTree.updateRounds(update.rounds, spectating == false); }
public static void playGame(int col, int row) { tree.getRound(col, row).forceRandomWinner(); List <TournamentRoundDTO> temp = new List <TournamentRoundDTO>(); foreach (List <TournamentRound> layer in tree.getTree()) { foreach (TournamentRound r in layer) { temp.Add(r.createDTO()); } } visualSingleton.updateRounds(temp.ToArray(), true); }