Beispiel #1
0
 public FightRoom(int roomId, List <ClientPeer> clientList)
 {
     this.roomId = roomId;
     playerList  = new List <PlayerDto>();
     foreach (var client in clientList)
     {
         PlayerDto dto = new PlayerDto(client.Id, client.UserName);
         playerList.Add(dto);
     }
     cardLibrary          = new CardLibrary();
     roundModel           = new RoundModel();
     leaveUserIdList      = new List <int>();
     giveUpCardUserIdList = new List <int>();
     stakesSum            = 0;
 }
Beispiel #2
0
 /// <summary>
 /// 创建战斗房间的牌库
 /// </summary>
 public void CreateCardLibrary()
 {
     cardLibrary = new CardLibrary(UidRaceidDic);
 }