Пример #1
0
 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);
     }
 }
Пример #2
0
        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);
            }
        }
Пример #3
0
 public void RemoveAssignedMatch()
 {
     this.currentMatch = null;
 }
Пример #4
0
 public void AssignMatch(Lobby_Match lobby_Match)
 {
     this.currentMatch = lobby_Match;
 }