| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- ---------------------logic同world通信的协议定义-----------------------
- ---初始hello
- LW_HELLO = {
- {"svrIndex", "int"},
- }
- LW_DISCONNECT = {}
- LW_HEARTBEAT = {
- {"svrIndexData", "table"},
- }
- LW_MOZHU_QUERY = {
- {"uuid", "string"},
- {"unionUuid", "string"},
- }
- WL_MOZHU_QUERY = {
- {"uuid", "string"},
- {"myRank", "int"},
- {"roleRank", "table"},
- {"unionRank", "table"},
- {"info", "table"},
- }
- WL_HELLO = {
- {"nGetSvrID", "int"},
- {"nNowSvrID", "int"},
- }
- WL_HEARTBEAT = {}
- LW_MIDDLE_CHAT =
- {
- {"svrIndex", "int"},
- {"tChatMsg", "table"},
- }
- WL_MIDDLE_CHAT =
- {
- {"tChatMsg", "table"}
- }
- -- 聊天查看分享英雄数据(请求的服务器->中心)
- LW_MIDDLE_CHAT_QUERY_HERO_DATA =
- {
- {"nSrcServerID", "int"}, -- 源服务器ID
- {"nDesServerID", "int"}, -- 目标服务器ID
- {"nSrcUID", "string"}, -- 请求的玩家UID
- {"nDesUID", "string"}, -- 查询的玩家UID
- {"nHeroIndex", "int"}, -- 查看的英雄下表
- {"nChatType", "int"}, -- 聊天频道
- }
- -- 发送到对应服务器信息(中心->目标服务器)
- WL_MIDDLE_CHAT_QUERY_HERO_DATA =
- {
- {"nSrcServerID", "int"}, -- 源服务器ID
- {"nSrcUID", "string"}, -- 请求的玩家UID
- {"nDesUID", "string"}, -- 查询的玩家UID
- {"nHeroIndex", "int"}, -- 查看的英雄下表
- {"nChatType", "int"}, -- 聊天频道
- }
- -- 英雄信息回复(目标->中心)
- LW_MIDDLE_CHAT_GET_HERO_DATA =
- {
- -- {"nResult", "int"}, -- 结果 1 获取成功,0 获取不到数据
- {"nSrcUID", "string"}, -- 请求的玩家UID
- {"nSrcServerID", "int"}, -- 源服务器ID
- {"tHeroData", "table"}, -- 英雄数据
- }
- -- 英雄信息回复(目标->中心)
- WL_MIDDLE_CHAT_GET_HERO_DATA =
- {
- -- {"nResult", "int"}, -- 结果 1 获取成功,0 获取不到数据
- {"nSrcUID", "string"}, -- 请求的玩家UID
- {"tHeroData", "table"}, -- 英雄数据
- }
- -- 请求战报录像
- LW_WARREPORT_GET_COMBATINFO =
- {
- {"nSrcUID", "string"},
- {"type", "int"},
- {"id", "string"},
- {"mode", "int"},
- {"nSrcServerID", "int"}, -- 源服务器ID
- {"nDesServerID", "int"}, -- 目标服务器ID
- }
- WL_WARREPORT_GET_COMBATINFO =
- {
- {"nSrcUID", "string"},
- {"type", "int"},
- {"id", "string"},
- {"nSrcServerID", "int"}, -- 源服务器ID
- {"mode", "int"},
- }
- -- 发送战报数据
- LW_WARREPORT_SEND_COMBATINFO =
- {
- {"nSrcUID", "string"},
- {"mode", "int"},
- {"combatInfo", "table"},
- {"nSrcServerID", "int"}, -- 源服务器ID
- }
- WL_WARREPORT_SEND_COMBATINFO =
- {
- {"nSrcUID", "string"},
- {"mode", "int"},
- {"combatInfo", "table"},
- }
|