Player.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System.Collections.Generic;
  2. namespace ET.Server
  3. {
  4. [ChildOf(typeof(GamePlayerComponent))]
  5. public sealed class Player : Entity, IAwake<Session>, IDestroy
  6. {
  7. /** 游戏服session InstanceId **/
  8. public long GameSessionActorId { get; set; }
  9. /** 玩家session **/
  10. public Session Session { get; set; }
  11. /** 渠道 10000:测试渠道全渠道 10001:黄冈 10002:鄂州 **/
  12. public int Channel { get; set; }
  13. /** 账号 **/
  14. public string Account { get; set; }
  15. /** 服务器id **/
  16. public int LogicServerId { get; set; }
  17. /** 创建时间 **/
  18. public long CreateTime { get; set; }
  19. /** 登陆时间 **/
  20. public long LoginTime { get; set; }
  21. /** 下线时间 **/
  22. public long LogoutTime { get; set; }
  23. /** 在线状态 **/
  24. public bool IsOnline { get; set; }
  25. /** 头像 **/
  26. public string AvatarUrl { get; set; }
  27. /** 名称 **/
  28. public string Name { get; set; }
  29. /** 性别 **/
  30. public int Sex { get; set; }
  31. /** 经验 **/
  32. public long Exp { get; set; }
  33. /** 等级 **/
  34. public int Level { get; set; }
  35. /** vip等级 **/
  36. public int Vip { get; set; }
  37. /** 钻石 **/
  38. public long Diamond { get; set; }
  39. /** 房间号 **/
  40. public int RoomId { get; set; }
  41. /** 玩家位置 0东 1南 2西 3北 **/
  42. public int Pos { get; set; }
  43. /** 玩家状态 0未准备 1已准备 2游戏中 3结束 **/
  44. public int State { get; set; }
  45. /** 是否托管 **/
  46. public bool IsAuto { get; set; }
  47. /** 玩家手牌 **/
  48. public int[] RemainCards { get; set; }
  49. /** 玩家出牌堆 **/
  50. public int[] DisCards { get; set; }
  51. /** 玩家吃碰杠集合 **/
  52. public List<Struct.Kezi> KeZi { get; set; }
  53. /** 玩家可操作动作 吃、碰、杠、胡、过 **/
  54. public int[] Act { get; set; }
  55. /** 玩家可操作动作牌列表 **/
  56. public List<Struct.Kezi> ActInfo { get; set; }
  57. /** 胡牌堆 **/
  58. public List<int> HuCards { get; set; }
  59. /** 胡牌类型 **/
  60. public int HuType { get; set; }
  61. /** 玩家出牌次数 **/
  62. public int DiscardCount { get; set; }
  63. }
  64. }