Ejemplo n.º 1
0
    public void InfoOnePlayerPengCard(MJPlayerBase player, CardsInfoStruct info)
    {
        if (info == null)
        {
            player.InitPengCards(eMJInstructionsType.PENG, null);
        }
        else
        {
            List <MJliangcard> list = new List <MJliangcard>();
            if (info.gangList != null)
            {
                player.InitGangCards(eMJInstructionsType.GANG, info.gangList);
            }

            if (info.huList != null)
            {
                player.InitHuCards(eMJInstructionsType.HU, info.huList);
            }
            if (info.pengList != null)
            {
                //list.AddRange(info.pengList);
                player.InitPengCards(eMJInstructionsType.PENG, info.pengList);
            }
        }
    }
Ejemplo n.º 2
0
 /// <summary>
 /// 初始化胡牌
 /// </summary>
 /// <param name="player"></param>
 /// <param name="info"></param>
 public void InitHuCard(MJPlayerBase player, CardsInfoStruct info, int huType = -1)
 {
     if (info.huList != null && info.huList.Count >= 0)
     {
         player.InitHuCards(eMJInstructionsType.HU, info.huList, huType);
     }
 }