fish_match.proto 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. package fish_protocols;
  2. import "fish_def.proto";
  3. import "msg_type_def.proto";
  4. message matchRankInfo
  5. {
  6. optional int32 playerId = 1;
  7. optional string nickName = 2;
  8. optional int32 vip = 3;
  9. optional int32 headid = 4;
  10. optional int32 frameid = 5;
  11. optional int32 rank = 6;
  12. optional int32 score = 7;
  13. }
  14. message questInfo
  15. {
  16. optional int32 questId = 1;
  17. optional int32 count = 2;
  18. }
  19. message killFishInfo
  20. {
  21. optional int32 fishId = 1;
  22. optional int32 count = 2;
  23. }
  24. // 获取竞技场当前信息
  25. message packetc2l_get_arena_match_info
  26. {
  27. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_arena_match_info ];
  28. }
  29. // 获取竞技场当前信息结果
  30. message packetl2c_get_arena_match_info_result
  31. {
  32. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_arena_match_info_result];
  33. // 日排名列表
  34. repeated matchRankInfo dailyRankList = 2;
  35. // 周排名列表
  36. repeated matchRankInfo weeklyRankList = 3;
  37. // 任务记录
  38. repeated questInfo questList = 4;
  39. // 杀死鱼记录
  40. repeated killFishInfo killList = 5;
  41. //子弹数
  42. optional int32 bulletCount = 6;
  43. optional int32 curScore = 7;
  44. optional int32 joinCount = 8;
  45. optional int32 questGroup = 9;
  46. optional matchRankInfo selfDayRank = 10;
  47. optional matchRankInfo selfWeekRank = 11;
  48. optional int32 startTime = 12;
  49. optional int32 endTime = 13;
  50. }
  51. // 同步竞技场子弹
  52. message packetc2l_syn_arena_match_bullet
  53. {
  54. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_syn_arena_match_bullet];
  55. }
  56. // 同步竞技场子弹结果
  57. message packetl2c_syn_arena_match_bullet_result
  58. {
  59. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_syn_arena_match_bullet_result];
  60. optional int32 bulletCount = 2;
  61. }
  62. // 获取竞技场历史排行
  63. message packetc2l_get_arena_match_history_rank
  64. {
  65. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_arena_match_history_rank ];
  66. optional int32 type = 2; //1上周 2昨日 3前日
  67. }
  68. // 获取竞技场历史排行返回
  69. message packetl2c_get_arena_match_history_rank_result
  70. {
  71. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_arena_match_history_rank_result];
  72. optional int32 type = 2; //1上周 2昨日 3前日
  73. repeated matchRankInfo rankList = 3;
  74. optional matchRankInfo selfRank = 4;
  75. }
  76. // 参赛
  77. message packetc2l_join_arena_match
  78. {
  79. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_join_arena_match ];
  80. }
  81. // 参赛结果
  82. message packetl2c_join_arena_match_result
  83. {
  84. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_join_arena_match_result ];
  85. optional int32 result = 2;
  86. optional int32 playerId = 3;
  87. optional int32 bulletCount = 4;
  88. optional int32 curScore = 5;
  89. optional int32 joinCount = 6;
  90. optional int32 questGroup = 7;
  91. }
  92. // 参赛结果
  93. message packetl2c_notify_arena_match_add_bullet
  94. {
  95. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_notify_arena_match_add_bullet ];
  96. optional int32 playerId = 2;
  97. optional int32 addCount = 3;
  98. optional int32 curCount = 4;
  99. }
  100. message buffInfo
  101. {
  102. optional int32 buffId = 1;
  103. optional int32 buffRate = 2;
  104. }
  105. // 竞技场结算通知
  106. message packetl2c_arena_match_end_notify
  107. {
  108. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_arena_match_end_notify];
  109. // 结束原因 1 子弹用光了 2 比赛结束了
  110. optional int32 reason = 2;
  111. // 最终结算buff列表
  112. repeated buffInfo buffList = 3;
  113. // 排名
  114. optional int32 rank = 4;
  115. // 本轮基础成绩
  116. optional int32 curBaseScore = 5;
  117. // 本轮加成成绩
  118. optional int32 curAddScore = 6;
  119. // 今日最佳成绩
  120. optional int32 topScore = 7;
  121. }
  122. // 获取自由赛当前信息
  123. message packetc2l_get_freedom_match_info
  124. {
  125. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_freedom_match_info ];
  126. optional int32 roomId = 2; //房间号 12 13
  127. }
  128. // 获取自由赛当前信息结果
  129. message packetl2c_get_freedom_match_info_result
  130. {
  131. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_freedom_match_info_result];
  132. optional int32 roomId = 2; //房间号 12 13
  133. repeated matchRankInfo dailyRankList = 3;
  134. optional int32 bulletCount = 4;
  135. optional int32 curScore = 5;
  136. optional int32 joinCount = 6;
  137. optional int32 leftSecond = 7;
  138. optional matchRankInfo selfDayRank = 8;
  139. optional int32 startTime = 9;
  140. optional int32 endTime = 10;
  141. }
  142. // 同步自由赛子弹
  143. message packetc2l_syn_freedom_match_bullet
  144. {
  145. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_syn_freedom_match_bullet];
  146. optional int32 roomId = 2;
  147. }
  148. // 同步自由赛子弹结果
  149. message packetl2c_syn_freedom_match_bullet_result
  150. {
  151. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_syn_freedom_match_bullet_result];
  152. optional int32 roomId = 2;
  153. optional int32 bulletCount = 3;
  154. }
  155. // 参赛
  156. message packetc2l_join_freedom_match
  157. {
  158. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_join_freedom_match ];
  159. optional int32 roomId = 2; //房间号 12 13
  160. }
  161. // 参赛结果
  162. message packetl2c_join_freedom_match_result
  163. {
  164. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_join_freedom_match_result ];
  165. optional int32 result = 2;
  166. optional int32 roomId = 3; //房间号 12 13
  167. optional int32 playerId = 4;
  168. optional int32 bulletCount = 5;
  169. optional int32 curScore = 6;
  170. optional int32 joinCount = 7;
  171. optional int32 leftSecond = 8;
  172. }
  173. message packetc2l_freedom_match_do_balance
  174. {
  175. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_freedom_match_do_balance ];
  176. optional int32 roomId = 2; //房间号 12 13
  177. }
  178. // 自由赛结束通知
  179. message packetl2c_freedom_match_end_notify
  180. {
  181. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_freedom_match_end_notify];
  182. optional int32 roomId = 2; //房间号 12 13
  183. // 结束原因 1 子弹用光了 2 比赛结束了 3 主动结算
  184. optional int32 reason = 3;
  185. // 最终结算buff列表
  186. repeated buffInfo buffList = 4;
  187. // 排名
  188. optional int32 rank = 5;
  189. // 本轮成绩
  190. optional int32 curBaseScore = 6;
  191. // 本轮成绩
  192. optional int32 curAddScore = 7;
  193. // 今日最佳成绩
  194. optional int32 topScore = 8;
  195. }