コード例 #1
0
ファイル: FightRoom.cs プロジェクト: zht0222/Unity-ZjhGame
 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;
 }
コード例 #2
0
ファイル: FightRoom.cs プロジェクト: kc345ws/GameServer
 /// <summary>
 /// 创建战斗房间的牌库
 /// </summary>
 public void CreateCardLibrary()
 {
     cardLibrary = new CardLibrary(UidRaceidDic);
 }