client2world_rank.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. import "client2world_msg_type.proto";
  2. import "msg_type_def.proto";
  3. import "msg_info_def.proto";
  4. package client2world_protocols;
  5. message RankInfo
  6. {
  7. // 玩家ID
  8. optional int32 playerId = 1;
  9. // 昵称
  10. optional string nickName = 2;
  11. // 金币
  12. optional int64 gold = 3;
  13. // VIP
  14. optional int32 vipLevel = 4;
  15. optional int32 playerlv = 5;
  16. optional int32 headid = 6;
  17. optional int32 frameid = 7;
  18. };
  19. // 请求金币排行
  20. message packetc2w_req_coin_rank
  21. {
  22. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_rank];
  23. }
  24. // 请求金币排行结果
  25. message packetw2c_req_coin_rank_result
  26. {
  27. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_rank_result];
  28. // 排行列表
  29. repeated RankInfo rankList = 2;
  30. // 自身的排名, 从0开始计数
  31. optional int32 selfRank = 3;
  32. }
  33. message RechargeInfo
  34. {
  35. // 玩家ID
  36. optional int32 playerId = 1;
  37. // 昵称
  38. optional string nickName = 2;
  39. // 充值金额
  40. optional int32 rmb = 3;
  41. // VIP
  42. optional int32 vipLevel = 4;
  43. };
  44. // 请求金币排行
  45. message packetc2w_req_recharge_rank
  46. {
  47. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recharge_rank];
  48. optional bool is_yesterday = 2 [default=false];
  49. }
  50. // 请求充值排行结果
  51. message packetw2c_req_recharge_rank_result
  52. {
  53. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recharge_rank_result];
  54. // 排行列表
  55. repeated RechargeInfo rankList = 2;
  56. // 自身的排名, 从0开始计数
  57. optional int32 selfRank = 3;
  58. optional int32 selfrmb = 4;
  59. optional bool is_yesterday = 5 [default=false];
  60. }
  61. // 请求金币增长排行
  62. message packetc2w_req_coin_growth
  63. {
  64. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_growth];
  65. }
  66. // 请求金币增长排行结果
  67. message packetw2c_req_coin_growth_result
  68. {
  69. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_growth_result];
  70. // 排行列表
  71. repeated RankInfo rankList = 2;
  72. // 自身的排名, 从0开始计数
  73. optional int32 selfRank = 3;
  74. // 自身的金币
  75. optional int64 selfGold = 4;
  76. }