InnerProto.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. -- 回复开服天数
  172. LW_COMMERCE_SENDOPENDAY = {
  173. {"nOpenDay", "int"},
  174. {"nSrcServerID", "int"},
  175. }
  176. -- 请求是否开启活动
  177. LW_COMMERCE_ACTOPEN =
  178. {
  179. {"nSrcServerID", "int"}, -- 源服务器ID
  180. {"nOperate", "int"}, -- 来源
  181. }
  182. WL_COMMERCE_ACTOPEN =
  183. {
  184. {"nOpen", "int"}, -- 1 开 0 未开
  185. {"nOperate", "int"}, -- 来源
  186. {"nServerKey", "int"}, -- 服务器Key
  187. }
  188. -- 排行榜数据改变发送到中心服进行排行
  189. LW_COMMERCE_RANK_POINT_CHANGE =
  190. {
  191. {"uuid", "string"}, -- 玩家uid
  192. {"name", "string"}, -- 玩家姓名
  193. {"head", "int"}, -- 玩家头像ID
  194. {"headFrame", "int"}, -- 玩家头像框
  195. {"nSrcServerID", "int"}, -- 服务器ID
  196. {"nValue", "int"}, -- 排行key
  197. {"nRankType", "int"}, -- 排行类型
  198. {"nRankSubType", "int"}, -- 排行榜小类型
  199. {"nOperate", "int"}, -- 操作类型(1 累加nValue, 2 直接替换 )
  200. {"servername", "string"}, -- 服务器名称
  201. }
  202. -- 请求排行榜数据
  203. LW_COMMERCE_QUERY_RANK_INFO =
  204. {
  205. {"nRankType", "int"}, -- 排行类型
  206. {"nRankSubType", "int"}, -- 排行榜小类型
  207. {"nSrcServerID", "int"}, -- 服务器ID
  208. }
  209. -- 回复排行榜数据
  210. WL_COMMERCE_QUERY_RANK_INFO = {
  211. {"nRankType", "int"}, -- 排行类型
  212. {"nRankSubType", "int"}, -- 排行榜小类型
  213. {"nServerKey", "int"}, -- 服务器ID
  214. {"nBegin", "int"}, -- 首次发送
  215. {"nEnd", "int"}, -- 是否发送完成
  216. {"tRankData", "table"}, -- 排行榜数据
  217. }
  218. -- 获取服务器排行榜服务器排名
  219. LW_COMMERCE_QUERY_SERVER_RANK =
  220. {
  221. {"nSrcServerID", "int"}, -- 服务器ID
  222. {"nServerUuid", "string"}, -- 服务器唯一区分ID
  223. {"nOperate", "int"}, -- 操作类型
  224. }
  225. -- 获取服务器排行榜服务器排名 回包
  226. WL_COMMERCE_GET_SERVERRANK_PRIZE =
  227. {
  228. {"nRank", "int"}, -- 排名
  229. {"nOperate", "int"}, -- 操作类型
  230. }
  231. -- 通知中心服全服邮件发送完成
  232. LW_COMMERCE_TELL_SERVER_MAILOK =
  233. {
  234. {"nSrcServerID", "int"}, -- 服务器ID
  235. }
  236. -- 发送给对应的服务器 个人排行榜奖励
  237. WL_COMMERCE_SEND_HUMAN_PRIZE =
  238. {
  239. {"nRank", "int"},
  240. {"uuid", "string"},
  241. }
  242. -- 清理排行榜命令
  243. LW_COMMERCE_CLEAR_RANK =
  244. {
  245. {"nRankType", "int"}, -- 排行类型
  246. {"nRankSubType", "int"}, -- 排行榜小类型
  247. {"nSrcServerID", "int"}, -- 服务器ID
  248. }
  249. -- GM清理个人邮件发送缓存
  250. LW_COMMERCE_GM_CLEAR_MAIL =
  251. {
  252. {"nSrcServerID", "int"}, -- 服务器ID
  253. }
  254. -- 获取战区第一个服的活动时间数据
  255. WL_COMMERCE_GET_ACT_INFO = {
  256. {"nReqServerID", "int"} -- 不存在时为0
  257. }
  258. -- 发送给中心服活动时间数据
  259. LW_COMMERCE_GET_ACT_INFO =
  260. {
  261. {"nOperate", "int"}, -- 0 失败 1 成功有数据 2 成功无数据
  262. {"nReqServerID", "int"}, -- 不存在时为0
  263. {"nSrcServerID", "int"}, -- 服务器ID
  264. {"nBatchID", "int"}, -- 批次
  265. {"nBeginTime", "int"}, -- 开始时间
  266. {"nEndTime", "int"}, -- 结束时间
  267. }
  268. -- 请求中心服活动时间
  269. LW_COMMERCE_ACT_GET_OPENTIME =
  270. {
  271. {"nSrcServerID", "int"}, -- 服务器ID
  272. }
  273. -- 回复普通服活动时间
  274. WL_COMMERCE_ACT_GET_OPENTIME =
  275. {
  276. {"nBatchID", "int"}, -- 批次
  277. {"nBeginTime", "int"}, -- 开始时间
  278. {"nEndTime", "int"}, -- 结束时间
  279. }
  280. -------------------- 跨服商业活动结束 ---------------------------
  281. -------------------- 天梯赛开始 -----------------------------------
  282. -------------------- 天梯赛结束 -----------------------------------