private void handleTournamentUpdate(IIncommingMessage rawMsg) { TournamentTreeUpdate update = rawMsg.Deserialize <TournamentTreeUpdate>(); singleton.allUpdates.Add(update); currentTree.updateRounds(update.rounds, spectating == false); }
private static void addNewUpdate(TournamentTreeUpdate update) { storedUpdates.Add(update); if (ClientUIOverlord.currentState == ClientUIStates.PlayingTournament) { currentTree.updateRounds(update.rounds, true); } }
private void updateEveryone(List <RoundID> IDs) { TournamentTreeUpdate updateMsg = new TournamentTreeUpdate() { rounds = IDs.Select(r => gameTree.getRoundDTO(r)).ToArray() }; gameInfo.connectedPeers.ForEach(p => p.SendMessage((short)CustomMasterServerMSG.runningTournamentUpdate, updateMsg)); gameInfo.admin.SendMessage((short)CustomMasterServerMSG.runningTournamentUpdate, updateMsg); }