client2world_wjlw.proto 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. import "client2world_msg_type.proto";
  2. import "msg_type_def.proto";
  3. import "msg_info_def.proto";
  4. package client2world_protocols;
  5. // 装填记录
  6. message EquipRecord
  7. {
  8. optional string nickName = 1;
  9. // 装填数量
  10. optional int32 equipCount = 2;
  11. // 装填时间
  12. optional int32 time = 3;
  13. // 装填ID
  14. optional int32 id = 4;
  15. }
  16. // 获奖记录
  17. message GlobalRewardRecord
  18. {
  19. optional string nickName = 1;
  20. // 获得金币
  21. optional int32 gold = 2;
  22. // 获得时间
  23. optional int32 time = 3;
  24. }
  25. message WjlwInfo
  26. {
  27. // 已装填
  28. optional int32 hasEquip = 1;
  29. // 剩余炮弹数量
  30. optional int32 remainBulletCount = 2;
  31. // 累计奖池
  32. optional int32 rewardPool = 3;
  33. // 发射倒计时
  34. optional int32 remainFireTime = 4;
  35. // 装填记录
  36. repeated EquipRecord equipRecordList = 5;
  37. }
  38. // 付费玩法 奖励
  39. message RecharegRewardInfo
  40. {
  41. // 奖励id
  42. optional int32 rewardId = 1;
  43. // 获奖昵称
  44. optional string nickName = 2;
  45. // 奖励数量
  46. optional int32 rewardCount = 3;
  47. }
  48. // 打开围剿龙王界面
  49. message packetc2w_wjlw_enter
  50. {
  51. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_wjlw_enter];
  52. }
  53. message packetw2c_wjlw_enter_result
  54. {
  55. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_wjlw_enter_result];
  56. // 金币玩法信息
  57. optional WjlwInfo goldInfo = 2;
  58. // 付费玩法信息
  59. optional WjlwInfo rechargeInfo = 3;
  60. // 金币玩法,获奖记录
  61. repeated GlobalRewardRecord rewardRecordList = 4;
  62. // 付费玩法 昨日奖励
  63. repeated RecharegRewardInfo yesterdayInfo = 5;
  64. // 金币玩法当前状态 0-装配中, 1-结算中
  65. optional int32 goldState = 6;
  66. }
  67. // 退出,关闭界面, 无返回消息。
  68. message packetc2w_wjlw_exit
  69. {
  70. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_wjlw_exit];
  71. }
  72. // 装填炮弹
  73. message packetc2w_wjlw_equip
  74. {
  75. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_wjlw_equip];
  76. // 0-金币玩法, 1-付费玩法
  77. optional int32 playType = 2;
  78. // 装填数量
  79. optional int32 equipCount = 3;
  80. }
  81. // 装填炮弹
  82. message packetw2c_wjlw_equip_result
  83. {
  84. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_wjlw_equip_result];
  85. optional int32 result = 2;
  86. // 0-金币玩法, 1-付费玩法
  87. optional int32 playType = 3;
  88. // 装填数量
  89. optional int32 equipCount = 4;
  90. }
  91. // 请求个人获奖记录
  92. message packetc2w_wjlw_req_self_reward_record
  93. {
  94. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_wjlw_req_self_reward_record];
  95. // 0-金币玩法, 1-付费玩法
  96. optional int32 playType = 2;
  97. }
  98. // 个人获奖记录
  99. message PriRewardRecord
  100. {
  101. // 记录id
  102. optional int32 recordId = 1;
  103. // 获奖时间
  104. optional int32 time = 2;
  105. // 奖励道具
  106. optional int32 itemId = 3;
  107. // 奖励数量
  108. optional int32 count = 4;
  109. // 是否领取
  110. optional bool isReceive = 5;
  111. }
  112. // 请求个人获奖记录结果
  113. message packetw2c_wjlw_req_self_reward_record_result
  114. {
  115. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_wjlw_req_self_reward_record_result];
  116. // 0-金币玩法, 1-付费玩法
  117. optional int32 playType = 2;
  118. repeated PriRewardRecord recordList = 3;
  119. }
  120. // 领取奖励
  121. message packetc2w_wjlw_recv_reward
  122. {
  123. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_wjlw_recv_reward];
  124. // 0-金币玩法, 1-付费玩法
  125. optional int32 playType = 2;
  126. // 记录id
  127. optional int32 recordId = 3;
  128. }
  129. // 领取奖励
  130. message packetw2c_wjlw_recv_reward_result
  131. {
  132. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_wjlw_recv_reward_result];
  133. optional int32 result = 2;
  134. // 0-金币玩法, 1-付费玩法
  135. optional int32 playType = 3;
  136. // 记录id
  137. optional int32 recordId = 4;
  138. }
  139. // 金币玩法广播开奖
  140. message packetw2c_wjlw_bc_open_reward
  141. {
  142. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_wjlw_bc_open_reward];
  143. // 获奖记录
  144. optional GlobalRewardRecord record = 2;
  145. }
  146. // 定时刷新界面, 10秒请求,奖池与装填记录。 活动结束后,停止刷新
  147. message packetc2w_wjlw_refresh_interval
  148. {
  149. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_wjlw_refresh_interval];
  150. // 传装填ID
  151. optional int32 equipLastTime = 2;
  152. // 0-金币玩法, 1-付费玩法
  153. optional int32 playType = 3;
  154. }
  155. message packetw2c_wjlw_refresh_interval_result
  156. {
  157. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_wjlw_refresh_interval_result];
  158. // 最后一条记录的装填ID
  159. optional int32 equipLastTime = 2;
  160. optional int32 playType = 3;
  161. // 装填记录
  162. repeated EquipRecord equipRecordList = 4;
  163. // 累计奖池
  164. optional int32 rewardPool = 5;
  165. }
  166. // 得到装填排行
  167. message packetc2w_wjlw_get_equip_rank
  168. {
  169. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_wjlw_get_equip_rank];
  170. // 0-金币玩法, 1-付费玩法
  171. optional int32 playType = 2;
  172. }
  173. message RankEquipInfo
  174. {
  175. // 昵称
  176. optional string nickName = 1;
  177. // 装填炮弹数量
  178. optional int32 equipCount = 2;
  179. // 获奖概率
  180. optional int32 winRewardProb = 3;
  181. optional int32 playerId = 4;
  182. }
  183. // 装填排行结果
  184. message packetw2c_wjlw_get_equip_rank_result
  185. {
  186. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_wjlw_get_equip_rank_result];
  187. optional int32 playType = 2;
  188. // 排行记录, 最多4条
  189. repeated RankEquipInfo rankList = 3;
  190. // 自己的信息,通过playerId查询是否在rankList中,
  191. optional RankEquipInfo selfInfo = 4;
  192. }