animaInscriptionHandler.proto 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. //***************************************************************************
  2. //* 作者: 詹斗池
  3. //* 创建时间: 2019-4-30
  4. //* 用途: 灵气-铭文系统
  5. //* 维护成员: 詹斗池
  6. //****************************************************************************/
  7. package pomelo.area;
  8. import 'item.proto';
  9. // 请求id(487-493)
  10. // 铭文合成时候的合成所需道具和数量
  11. message AnimaUpgradeReqInfo {
  12. required int32 gridIndex = 1;// 背包索引
  13. required int32 num = 2; // 数量
  14. }
  15. // 请求----487:打开灵气界面,界面信息 响应:AnimaInfoResponse
  16. message AnimaInfoRequest {}
  17. // 响应:打开灵气界面,界面信息
  18. message AnimaInfoResponse {
  19. required int32 s2c_code = 1;
  20. optional string s2c_msg = 2;
  21. required int32 level = 3; // 灵气等级
  22. required int32 value = 4; // 灵气值
  23. required int32 star_num = 5; // 累计命星数
  24. optional int32 sec = 6; // 秒,当前倒计时
  25. }
  26. // 请求----488:升级灵气 响应:AnimaUpgradeResponse
  27. message AnimaUpgradeRequest {}
  28. // 响应:升级灵气
  29. message AnimaUpgradeResponse {
  30. required int32 s2c_code = 1;
  31. optional string s2c_msg = 2;
  32. optional int32 level = 3; // 灵气等级
  33. optional int32 value = 4; // 灵气值
  34. }
  35. // 请求----489:灵气抽奖 响应:AnimaLuckyResponse
  36. message AnimaLuckyRequest {}
  37. // 响应:灵气抽奖
  38. message AnimaLuckyResponse {
  39. required int32 s2c_code = 1;
  40. optional string s2c_msg = 2;
  41. optional int32 value = 3; // 消耗元神值
  42. optional int32 obtain_value = 4; // 获得灵气值
  43. optional item.CountItems items = 5;// 抽奖的符文库
  44. optional int32 star_num = 6;// 当前命星数变化
  45. }
  46. // 已镶嵌的铭文信息
  47. message EquipmentInscription {
  48. required int32 index = 1; //孔的位置, 攻击-101表示第一个-112 防御-201标识第一个-212
  49. optional item.MiniItem ins = 2; //铭文
  50. }
  51. // 请求----490:打开铭文界面,界面信息 响应:AnimaInscriptionInfo
  52. message AnimaInscriptionInfoRequest {}
  53. // 响应:打开铭文界面,界面信息
  54. message AnimaInscriptionInfoResponse {
  55. required int32 s2c_code = 1;
  56. optional string s2c_msg = 2;
  57. repeated EquipmentInscription insArray = 3; // 镶嵌的铭文
  58. }
  59. // 请求----491:合成铭文 响应:AnimaInscriptionUpgradeResponse
  60. message AnimaInscriptionUpgradeRequest {
  61. required string code = 1; //铭文标识(合成后的得到的铭文)
  62. repeated AnimaUpgradeReqInfo destroyedInfo = 2; // 合成时候,需要被销毁的(目前默认数量3个道具)
  63. }
  64. // 响应:合成铭文
  65. message AnimaInscriptionUpgradeResponse {
  66. required int32 s2c_code = 1;
  67. optional string s2c_msg = 2;
  68. optional string code = 3; //
  69. }
  70. // 请求----492:镶嵌铭文 响应:AnimaInscriptionEquipResponse
  71. message AnimaInscriptionEquipRequest {
  72. required int32 equipIndex = 1; // 镶嵌位置
  73. required int32 girdIndex = 2; // 铭文背包格子索引
  74. }
  75. // 响应:镶嵌铭文
  76. message AnimaInscriptionEquipResponse {
  77. required int32 s2c_code = 1;
  78. optional string s2c_msg = 2;
  79. repeated EquipmentInscription insArray = 3; // 镶嵌的铭文
  80. }
  81. // 请求----493:卸下铭文 响应:AnimaInscriptionDownResponse
  82. message AnimaInscriptionDownRequest {
  83. required int32 equipIndex = 1; // 镶嵌位置
  84. }
  85. // 响应:卸下铭文
  86. message AnimaInscriptionDownResponse {
  87. required int32 s2c_code = 1;
  88. optional string s2c_msg = 2;
  89. repeated EquipmentInscription insArray = 3; // 镶嵌的铭文
  90. }
  91. // 请求----622:一键合成铭文 响应:AnimaInscriptionUpgradeOneKeyResponse
  92. message AnimaInscriptionUpgradeOneKeyRequest {
  93. required string code = 1; //铭文标识(合成后的得到的铭文)
  94. }
  95. // 响应:合成铭文
  96. message AnimaInscriptionUpgradeOneKeyResponse {
  97. required int32 s2c_code = 1;
  98. optional string s2c_msg = 2;
  99. optional string code = 3; // 此次一键合成的code
  100. optional int32 num = 4; // 此次一键合成得到的数量
  101. }
  102. // 请求----624:七星灯抽奖 响应:AnimaSevenStarResponse
  103. message AnimaSevenStarRequest {
  104. }
  105. // 响应:七星灯抽奖
  106. message AnimaSevenStarResponse {
  107. required int32 s2c_code = 1;
  108. optional string s2c_msg = 2;
  109. optional item.CountItems items = 3;// 抽奖的符文库
  110. }
  111. // 请求----625:灵珠界面信息 响应:AnimaLingZhuInfoResponse
  112. message AnimaLingZhuInfoRequest {
  113. }
  114. // 响应:灵珠界面信息
  115. message AnimaLingZhuInfoResponse {
  116. required int32 s2c_code = 1;
  117. optional string s2c_msg = 2;
  118. optional int32 s2c_ling_qi = 3; // 灵珠界面灵气总量
  119. repeated int32 s2c_lv = 4;// 分别是灵珠金木水火土等级
  120. }
  121. // 请求----626:灵珠升级 响应:AnimaLingZhuUpgradeResponse
  122. message AnimaLingZhuUpgradeRequest {
  123. required int32 zhu_index = 1; //灵珠标识【金1 木2 水3 火4 土5】
  124. }
  125. // 响应:灵珠升级
  126. message AnimaLingZhuUpgradeResponse {
  127. required int32 s2c_code = 1;
  128. optional string s2c_msg = 2;
  129. optional int32 s2c_value = 3;// 灵气变化后的值
  130. optional int32 s2c_index = 4;// 灵气变化后的值
  131. optional int32 s2c_lv = 5;// 灵气变化后的值
  132. }
  133. // 灵盘单功法单页信息(功法每一页信息)
  134. message AnimaGongFaPageInfo {
  135. required string s2c_gpid = 1;// 功法每页id
  136. required int32 s2c_gplv = 2; // 功法当前页等级
  137. }
  138. // 灵盘单功法单页信息(功法每一页信息)
  139. message AnimaGongFaInfo {
  140. required int32 s2c_index = 1; // 功法槽位
  141. optional int32 s2c_gid = 2;// 功法id
  142. optional int32 s2c_glv = 3;// 功法等级
  143. repeated AnimaGongFaPageInfo s2c_info_array = 4; // 功法组每一页信息
  144. }
  145. // 请求----627:功法信息 响应:AnimaGongFaInfoResponse
  146. message AnimaGongFaInfoRequest {
  147. optional int32 index = 1; // 请求哪个功法组(金木水火土 12345)
  148. }
  149. // 响应:功法信息
  150. message AnimaGongFaInfoResponse {
  151. required int32 s2c_code = 1;
  152. optional string s2c_msg = 2;
  153. repeated AnimaGongFaInfo s2c_info_array = 3; // 功法组每一页信息
  154. }
  155. // 请求----628:功法学习 响应:AnimaGongFaStudyResponse
  156. message AnimaGongFaStudyRequest {
  157. required int32 gong_index = 1; // 要学习的槽位
  158. required int32 bag_pos = 2; // 背包格子索引
  159. }
  160. // 响应:功法学习
  161. message AnimaGongFaStudyResponse {
  162. required int32 s2c_code = 1;
  163. optional string s2c_msg = 2;
  164. optional int32 s2c_index = 3; // 学习的槽位
  165. optional string s2c_gpid = 4; // 学习的功法页id
  166. }
  167. // 请求----629:功法升级合成 响应:
  168. message AnimaGongFaUpgradeRequest {
  169. required string gpid = 1; //要合成提升得功法页id
  170. }
  171. // 响应:功法升级合成
  172. message AnimaGongFaUpgradeResponse {
  173. required int32 s2c_code = 1;
  174. optional string s2c_msg = 2;
  175. optional int32 s2c_index = 3;
  176. optional int32 s2c_g_lv = 4; // 功法整体套装等级有变化
  177. optional string s2c_gpid = 5; // 学习的功法页id
  178. optional int32 s2c_gp_lv = 6; // 功法页等级有变化
  179. }
  180. //灵盘处理器
  181. service animaInscriptionHandler {
  182. rpc animaInfoRequest(AnimaInfoRequest)returns(AnimaInfoResponse);
  183. rpc animaUpgradeRequest(AnimaUpgradeRequest)returns(AnimaUpgradeResponse);
  184. rpc animaLuckyRequest(AnimaLuckyRequest)returns(AnimaLuckyResponse);
  185. rpc animaInscriptionInfoRequest(AnimaInscriptionInfoRequest)returns(AnimaInscriptionInfoResponse);
  186. rpc animaInscriptionUpgradeRequest(AnimaInscriptionUpgradeRequest)returns(AnimaInscriptionUpgradeResponse);
  187. rpc animaInscriptionEquipRequest(AnimaInscriptionEquipRequest)returns(AnimaInscriptionEquipResponse);
  188. rpc animaInscriptionDownRequest(AnimaInscriptionDownRequest)returns(AnimaInscriptionDownResponse);
  189. rpc animaInscriptionUpgradeOneKeyRequest(AnimaInscriptionUpgradeOneKeyRequest)returns(AnimaInscriptionUpgradeOneKeyResponse);
  190. // 624:灵盘七星灯抽奖
  191. rpc animaSevenStarRequest(AnimaSevenStarRequest)returns(AnimaSevenStarResponse);
  192. // 625:灵盘灵珠栏信息
  193. rpc animaLingZhuInfoRequest(AnimaLingZhuInfoRequest)returns(AnimaLingZhuInfoResponse);
  194. // 626:灵盘灵珠升级
  195. rpc animaLingZhuUpgradeRequest(AnimaLingZhuUpgradeRequest)returns(AnimaLingZhuUpgradeResponse);
  196. // 627:灵盘功法栏信息
  197. rpc animaGongFaInfoRequest(AnimaGongFaInfoRequest)returns(AnimaGongFaInfoResponse);
  198. // 628:灵盘功法页学习
  199. rpc animaGongFaStudyRequest(AnimaGongFaStudyRequest)returns(AnimaGongFaStudyResponse);
  200. // 629:灵盘功法页升级合成
  201. rpc animaGongFaUpgradeRequest(AnimaGongFaUpgradeRequest)returns(AnimaGongFaUpgradeResponse);
  202. }