Struct.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. namespace ET.Server
  2. {
  3. /// <summary>
  4. /// 数据结构
  5. /// </summary>
  6. public class Struct
  7. {
  8. /// <summary>
  9. /// 刻子对象
  10. /// </summary>
  11. public class Kezi
  12. {
  13. /** 1.明杠 2.回杠 3.暗杠 4.碰 5.吃 **/
  14. public int Type { get; set; }
  15. /** 牌(吃:为顺子第一张) **/
  16. public int Card { get; set; }
  17. /** 操作谁家的牌 **/
  18. public long PlayerId { get; set; }
  19. public Kezi(int type, int card, long playerId)
  20. {
  21. this.Type = type;
  22. this.Card = card;
  23. this.PlayerId = playerId;
  24. }
  25. }
  26. public class HuRes
  27. {
  28. public int Type { get; set; }
  29. public int Jiang { get; set; }
  30. public HuRes()
  31. {
  32. }
  33. public HuRes(int type, int jiang)
  34. {
  35. this.Type = type;
  36. this.Jiang = jiang;
  37. }
  38. }
  39. }
  40. }