public void ChangeLobbyReadyStatus(Lobby_Player lobby_Player) { this.matchPlayers[lobby_Player] = !this.matchPlayers[lobby_Player]; foreach (Lobby_Player lp in this.matchPlayers.Keys) { Lobby_Match.SendLobbyReadyStatusToPlayer(this.matchPlayers[lobby_Player], lp); } }
public static void SendToPlayerLobbyMatchInformation(Lobby_Player lobby_Player) { Lobby_Match match = lobby_Player.getCurrentMatch(); using (DarkRiftWriter w = DarkRiftWriter.Create()) { foreach (var item in match.matchPlayers.Keys) { w.Write(item.client.ID); //ID do Player //w.Write(item) w.Write(match.matchPlayers[item]); //Status (Ready) } using (Message m = Message.Create(UDRMS_Tags.getLobbyMatchInfo, w)) lobby_Player.client.SendMessage(m, SendMode.Reliable); } }
public void RemoveAssignedMatch() { this.currentMatch = null; }
public void AssignMatch(Lobby_Match lobby_Match) { this.currentMatch = lobby_Match; }