---------------------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"}, } -------------------- 请求跨服玩家头像数据开始 -------------------- LW_CHAT_PLAYER_INFO = { {"nSrcUID", "string"}, -- 请求uid {"nDesUID", "string"}, -- 目标UID {"nSrcServerID", "int"}, -- 源服务器ID {"nDesServerID", "int"}, -- 目标服务器ID } WL_CHAT_PLAYER_INFO = { {"nSrcUID", "string"}, -- 请求uid {"nDesUID", "string"}, -- 目标UID {"nSrcServerID", "int"}, -- 源服务器ID } LW_CHAT_PLAYER_INFO_SEND = { {"nSrcUID", "string"}, -- 请求uid {"nSrcServerID", "int"}, -- 源服务器ID {"tData", "table"}, -- 目标玩家数据 } WL_CHAT_PLAYER_INFO_SEND = { {"nSrcUID", "string"}, -- 请求uid {"tData", "table"}, -- 目标玩家数据 } -------------------- 请求跨服玩家头像数据结束 -------------------- -------------------- 请求跨服切磋开始 --------------------------- ---请求敌方数据 LW_COMBAT_GETINFO = { {"nSrcUID", "string"}, -- 请求uid {"nDesUID", "string"}, -- 目标UID {"nSrcServerID", "int"}, -- 源服务器ID {"nDesServerID", "int"}, -- 目标服务器ID {"nCombatType", "int"}, -- 对战类型 } WL_COMBAT_GETINFO = { {"nSrcUID", "string"}, -- 请求uid {"nDesUID", "string"}, -- 目标UID {"nSrcServerID", "int"}, -- 源服务器ID {"nCombatType", "int"}, -- 对战类型 } -- 回复数据 LW_COMBAT_GETINFO_SEND = { {"nResult", "int"}, -- 结果 {"nSrcUID", "string"}, -- 请求uid {"nSrcServerID", "int"}, -- 源服务器ID {"tObjList", "table"}, {"tHelpList", "table"}, {"tRoleBase", "table"}, {"formation", "int"}, {"tJiBan", "table"} } WL_COMBAT_GETINFO_SEND = { {"nResult", "int"}, -- 结果 {"nSrcUID", "string"}, -- 请求uid {"tObjList", "table"}, {"tHelpList", "table"}, {"tRoleBase", "table"}, {"formation", "int"}, {"tJiBan", "table"} } -------------------- 请求跨服切磋结束 ---------------------------