Exemplo n.º 1
0
        /// <summary>
        /// 前端开始洗牌,同时系统分发派
        /// </summary>
        /// <returns></returns>
        public List <ERoomUser> DoShuffle()
        {
            List <ERoomUser> Players = RoomUserRedis.GetAllPlayer(RoomCode).resultList;


            CardDataManager.ShuffleCard(Players);

            foreach (ERoomUser p in Players)
            {
                p.PlayerStauts = PlayerStauts.PrepareBet;

                RoomUserRedis.SetPlayer(RoomCode, p);
            }
            GameRedis.SetTableCards(CardDataManager.TableCards.Values.ToList());

            return(Players);
        }
Exemplo n.º 2
0
 public GameDataHandle(EOneGame game)
 {
     _OneGame         = game;
     _CardDataManager = new CardDataManager();
 }