InnerProto.lua 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. ---------------------logic同world通信的协议定义-----------------------
  2. ---初始hello
  3. LW_HELLO = {
  4. {"svrIndex", "int"},
  5. }
  6. LW_DISCONNECT = {}
  7. LW_HEARTBEAT = {
  8. {"svrIndexData", "table"},
  9. }
  10. LW_MOZHU_QUERY = {
  11. {"uuid", "string"},
  12. {"unionUuid", "string"},
  13. }
  14. WL_MOZHU_QUERY = {
  15. {"uuid", "string"},
  16. {"myRank", "int"},
  17. {"roleRank", "table"},
  18. {"unionRank", "table"},
  19. {"info", "table"},
  20. }
  21. WL_HELLO = {
  22. {"nGetSvrID", "int"},
  23. {"nNowSvrID", "int"},
  24. }
  25. WL_HEARTBEAT = {}
  26. LW_MIDDLE_CHAT =
  27. {
  28. {"svrIndex", "int"},
  29. {"tChatMsg", "table"},
  30. }
  31. WL_MIDDLE_CHAT =
  32. {
  33. {"tChatMsg", "table"}
  34. }
  35. -- 聊天查看分享英雄数据(请求的服务器->中心)
  36. LW_MIDDLE_CHAT_QUERY_HERO_DATA =
  37. {
  38. {"nSrcServerID", "int"}, -- 源服务器ID
  39. {"nDesServerID", "int"}, -- 目标服务器ID
  40. {"nSrcUID", "string"}, -- 请求的玩家UID
  41. {"nDesUID", "string"}, -- 查询的玩家UID
  42. {"nHeroIndex", "int"}, -- 查看的英雄下表
  43. {"nChatType", "int"}, -- 聊天频道
  44. }
  45. -- 发送到对应服务器信息(中心->目标服务器)
  46. WL_MIDDLE_CHAT_QUERY_HERO_DATA =
  47. {
  48. {"nSrcServerID", "int"}, -- 源服务器ID
  49. {"nSrcUID", "string"}, -- 请求的玩家UID
  50. {"nDesUID", "string"}, -- 查询的玩家UID
  51. {"nHeroIndex", "int"}, -- 查看的英雄下表
  52. {"nChatType", "int"}, -- 聊天频道
  53. }
  54. -- 英雄信息回复(目标->中心)
  55. LW_MIDDLE_CHAT_GET_HERO_DATA =
  56. {
  57. -- {"nResult", "int"}, -- 结果 1 获取成功,0 获取不到数据
  58. {"nSrcUID", "string"}, -- 请求的玩家UID
  59. {"nSrcServerID", "int"}, -- 源服务器ID
  60. {"tHeroData", "table"}, -- 英雄数据
  61. }
  62. -- 英雄信息回复(目标->中心)
  63. WL_MIDDLE_CHAT_GET_HERO_DATA =
  64. {
  65. -- {"nResult", "int"}, -- 结果 1 获取成功,0 获取不到数据
  66. {"nSrcUID", "string"}, -- 请求的玩家UID
  67. {"tHeroData", "table"}, -- 英雄数据
  68. }
  69. -- 请求战报录像
  70. LW_WARREPORT_GET_COMBATINFO =
  71. {
  72. {"nSrcUID", "string"},
  73. {"type", "int"},
  74. {"id", "string"},
  75. {"mode", "int"},
  76. {"nSrcServerID", "int"}, -- 源服务器ID
  77. {"nDesServerID", "int"}, -- 目标服务器ID
  78. }
  79. WL_WARREPORT_GET_COMBATINFO =
  80. {
  81. {"nSrcUID", "string"},
  82. {"type", "int"},
  83. {"id", "string"},
  84. {"nSrcServerID", "int"}, -- 源服务器ID
  85. {"mode", "int"},
  86. }
  87. -- 发送战报数据
  88. LW_WARREPORT_SEND_COMBATINFO =
  89. {
  90. {"nSrcUID", "string"},
  91. {"mode", "int"},
  92. {"combatInfo", "table"},
  93. {"nSrcServerID", "int"}, -- 源服务器ID
  94. }
  95. WL_WARREPORT_SEND_COMBATINFO =
  96. {
  97. {"nSrcUID", "string"},
  98. {"mode", "int"},
  99. {"combatInfo", "table"},
  100. }
  101. -------------------- 请求跨服玩家头像数据开始 --------------------
  102. LW_CHAT_PLAYER_INFO =
  103. {
  104. {"nSrcUID", "string"}, -- 请求uid
  105. {"nDesUID", "string"}, -- 目标UID
  106. {"nSrcServerID", "int"}, -- 源服务器ID
  107. {"nDesServerID", "int"}, -- 目标服务器ID
  108. }
  109. WL_CHAT_PLAYER_INFO =
  110. {
  111. {"nSrcUID", "string"}, -- 请求uid
  112. {"nDesUID", "string"}, -- 目标UID
  113. {"nSrcServerID", "int"}, -- 源服务器ID
  114. }
  115. LW_CHAT_PLAYER_INFO_SEND =
  116. {
  117. {"nSrcUID", "string"}, -- 请求uid
  118. {"nSrcServerID", "int"}, -- 源服务器ID
  119. {"tData", "table"}, -- 目标玩家数据
  120. }
  121. WL_CHAT_PLAYER_INFO_SEND =
  122. {
  123. {"nSrcUID", "string"}, -- 请求uid
  124. {"tData", "table"}, -- 目标玩家数据
  125. }
  126. -------------------- 请求跨服玩家头像数据结束 --------------------
  127. -------------------- 请求跨服切磋开始 ---------------------------
  128. ---请求敌方数据
  129. LW_COMBAT_GETINFO =
  130. {
  131. {"nSrcUID", "string"}, -- 请求uid
  132. {"nDesUID", "string"}, -- 目标UID
  133. {"nSrcServerID", "int"}, -- 源服务器ID
  134. {"nDesServerID", "int"}, -- 目标服务器ID
  135. {"nCombatType", "int"}, -- 对战类型
  136. }
  137. WL_COMBAT_GETINFO =
  138. {
  139. {"nSrcUID", "string"}, -- 请求uid
  140. {"nDesUID", "string"}, -- 目标UID
  141. {"nSrcServerID", "int"}, -- 源服务器ID
  142. {"nCombatType", "int"}, -- 对战类型
  143. }
  144. -- 回复数据
  145. LW_COMBAT_GETINFO_SEND =
  146. {
  147. {"nResult", "int"}, -- 结果
  148. {"nSrcUID", "string"}, -- 请求uid
  149. {"nSrcServerID", "int"}, -- 源服务器ID
  150. {"tObjList", "table"},
  151. {"tHelpList", "table"},
  152. {"tRoleBase", "table"},
  153. {"formation", "int"},
  154. {"tJiBan", "table"}
  155. }
  156. WL_COMBAT_GETINFO_SEND =
  157. {
  158. {"nResult", "int"}, -- 结果
  159. {"nSrcUID", "string"}, -- 请求uid
  160. {"tObjList", "table"},
  161. {"tHelpList", "table"},
  162. {"tRoleBase", "table"},
  163. {"formation", "int"},
  164. {"tJiBan", "table"}
  165. }
  166. -------------------- 请求跨服切磋结束 ---------------------------
  167. -------------------- 跨服商业活动开始 ---------------------------
  168. -- 请求开服天数
  169. WL_COMMERCE_QUERYOPENDAY = {}
  170. -- 回复开服天数
  171. LW_COMMERCE_SENDOPENDAY = {
  172. {"nOpenDay", "int"},
  173. {"nSrcServerID", "int"},
  174. }
  175. -- 请求是否开启活动
  176. LW_COMMERCE_ACTOPEN =
  177. {
  178. {"nSrcServerID", "int"}, -- 源服务器ID
  179. {"nOperate", "int"}, -- 来源
  180. }
  181. WL_COMMERCE_ACTOPEN =
  182. {
  183. {"nOpen", "int"}, -- 1 开 0 未开
  184. {"nOperate", "int"}, -- 来源
  185. }
  186. -- 排行榜数据改变发送到中心服进行排行
  187. LW_COMMERCE_RANK_POINT_CHANGE =
  188. {
  189. {"uuid", "string"}, -- 玩家uid
  190. {"name", "int"}, -- 玩家姓名
  191. {"head", "int"}, -- 玩家头像ID
  192. {"headFrame", "int"}, -- 玩家头像框
  193. {"nSrcServerID", "int"}, -- 服务器ID
  194. {"nValue", "int"}, -- 排行key
  195. {"nRankType", "int"}, -- 排行类型
  196. {"nRankSubType", "int"}, -- 排行榜小类型
  197. {"nOperate", "int"}, -- 操作类型(1 累加nValue, 2 直接替换 )
  198. }
  199. -- 请求排行榜数据
  200. LW_COMMERCE_QUERY_RANK_INFO =
  201. {
  202. {"nRankType", "int"}, -- 排行类型
  203. {"nRankSubType", "int"}, -- 排行榜小类型
  204. {"nSrcServerID", "int"}, -- 服务器ID
  205. }
  206. -- 回复排行榜数据
  207. WL_COMMERCE_QUERY_RANK_INFO = {
  208. {"nRankType", "int"}, -- 排行类型
  209. {"nRankSubType", "int"}, -- 排行榜小类型
  210. {"nServerKey", "int"}, -- 服务器ID
  211. {"nBegin", "int"}, -- 首次发送
  212. {"nEnd", "int"}, -- 是否发送完成
  213. {"tRankData", "table"}, -- 排行榜数据
  214. }
  215. -- 获取服务器排行榜服务器排名
  216. LW_COMMERCE_QUERY_SERVER_RANK =
  217. {
  218. {"nSrcServerID", "int"}, -- 服务器ID
  219. {"nServerUuid", "int"}, -- 服务器唯一区分ID
  220. {"nOperate", "int"}, -- 操作类型
  221. }
  222. -- 获取服务器排行榜服务器排名 回包
  223. WL_COMMERCE_GET_SERVERRANK_PRIZE =
  224. {
  225. {"nRank", "int"}, -- 排名
  226. {"nOperate", "int"}, -- 操作类型
  227. }
  228. -- 通知中心服全服邮件发送完成
  229. LW_COMMERCE_TELL_SERVER_MAILOK =
  230. {
  231. {"nSrcServerID", "int"}, -- 服务器ID
  232. }
  233. WL_COMMERCE_SEND_HUMAN_PRIZE =
  234. {
  235. {"nRank", "int"},
  236. {"uuid", "string"},
  237. }
  238. LW_COMMERCE_CLEAR_RANK =
  239. {
  240. {"nSrcServerID", "int"}, -- 服务器ID
  241. }
  242. -------------------- 跨服商业活动结束 ---------------------------