Player.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. /** 账号 **/
  12. public string Account { get; set; }
  13. /** 服务器id **/
  14. public int LogicServerId { get; set; }
  15. /** 创建时间 **/
  16. public long CreateTime { get; set; }
  17. /** 登陆时间 **/
  18. public long LoginTime { get; set; }
  19. /** 下线时间 **/
  20. public long LogoutTime { get; set; }
  21. /** 在线状态 **/
  22. public bool IsOnline { get; set; }
  23. /** 头像 **/
  24. public string AvatarUrl { get; set; }
  25. /** 名称 **/
  26. public string Name { get; set; }
  27. /** 性别 **/
  28. public int Sex { get; set; }
  29. /** 经验 **/
  30. public long Exp { get; set; }
  31. /** 等级 **/
  32. public int Level { get; set; }
  33. /** 房间号 **/
  34. public int RoomId { get; set; }
  35. /** 玩家位置 0东 1南 2西 3北 **/
  36. public int Pos { get; set; }
  37. /** 玩家状态 0未准备 1已准备 2游戏中 3结束 **/
  38. public int State { get; set; }
  39. /** 是否托管 **/
  40. public bool IsAuto { get; set; }
  41. /** 玩家手牌 **/
  42. public int[] RemainCards { get; set; }
  43. /** 玩家出牌堆 **/
  44. public int[] DisCards { get; set; }
  45. /** 玩家吃碰杠集合 **/
  46. public List<Struct.Kezi> KeZi { get; set; }
  47. /** 玩家可操作动作 吃、碰、杠、胡、过 **/
  48. public int[] Act { get; set; }
  49. /** 玩家可操作动作牌列表 **/
  50. public List<Struct.Kezi> ActInfo { get; set; }
  51. /** 胡牌堆 **/
  52. public List<int> HuCards { get; set; }
  53. /** 玩家出牌次数 **/
  54. public int DiscardCount { get; set; }
  55. }
  56. }