/// <summary> /// 构造函数 /// </summary> /// <param name="cardDtos">所出的牌</param> public DealDto(List <CardDto> cardDtos, int uid) { this.Uid = uid; this.Cards = cardDtos; this.Length = cardDtos.Count; this.Type = CardType.GetType(cardDtos); this.Weight = CardWeight.GetWeight(cardDtos, this.Type); this.IsRegular = (this.Type != CardType.NONE); }