InnerProto.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. }