---------------------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"} } -------------------- 请求跨服切磋结束 --------------------------- -------------------- 跨服商业活动开始 --------------------------- -- 请求开服天数 WL_COMMERCE_QUERYOPENDAY = { } -- 回复开服天数 LW_COMMERCE_SENDOPENDAY = { {"nOpenDay", "int"}, {"nSrcServerID", "int"}, } -- 请求是否开启活动 LW_COMMERCE_ACTOPEN = { {"nSrcServerID", "int"}, -- 源服务器ID {"nOperate", "int"}, -- 来源 } WL_COMMERCE_ACTOPEN = { {"nOpen", "int"}, -- 1 开 0 未开 {"nOperate", "int"}, -- 来源 {"nServerKey", "int"}, -- 服务器Key } -- 排行榜数据改变发送到中心服进行排行 LW_COMMERCE_RANK_POINT_CHANGE = { {"uuid", "string"}, -- 玩家uid {"name", "string"}, -- 玩家姓名 {"head", "int"}, -- 玩家头像ID {"headFrame", "int"}, -- 玩家头像框 {"nSrcServerID", "int"}, -- 服务器ID {"nValue", "int"}, -- 排行key {"nRankType", "int"}, -- 排行类型 {"nRankSubType", "int"}, -- 排行榜小类型 {"nOperate", "int"}, -- 操作类型(1 累加nValue, 2 直接替换 ) {"servername", "string"}, -- 服务器名称 } -- 请求排行榜数据 LW_COMMERCE_QUERY_RANK_INFO = { {"nRankType", "int"}, -- 排行类型 {"nRankSubType", "int"}, -- 排行榜小类型 {"nSrcServerID", "int"}, -- 服务器ID } -- 回复排行榜数据 WL_COMMERCE_QUERY_RANK_INFO = { {"nRankType", "int"}, -- 排行类型 {"nRankSubType", "int"}, -- 排行榜小类型 {"nServerKey", "int"}, -- 服务器ID {"nBegin", "int"}, -- 首次发送 {"nEnd", "int"}, -- 是否发送完成 {"tRankData", "table"}, -- 排行榜数据 } -- 获取服务器排行榜服务器排名 LW_COMMERCE_QUERY_SERVER_RANK = { {"nSrcServerID", "int"}, -- 服务器ID {"nServerUuid", "string"}, -- 服务器唯一区分ID {"nOperate", "int"}, -- 操作类型 } -- 获取服务器排行榜服务器排名 回包 WL_COMMERCE_GET_SERVERRANK_PRIZE = { {"nRank", "int"}, -- 排名 {"nOperate", "int"}, -- 操作类型 } -- 通知中心服全服邮件发送完成 LW_COMMERCE_TELL_SERVER_MAILOK = { {"nSrcServerID", "int"}, -- 服务器ID } -- 发送给对应的服务器 个人排行榜奖励 WL_COMMERCE_SEND_HUMAN_PRIZE = { {"nRank", "int"}, {"uuid", "string"}, } -- 清理排行榜命令 LW_COMMERCE_CLEAR_RANK = { {"nRankType", "int"}, -- 排行类型 {"nRankSubType", "int"}, -- 排行榜小类型 {"nSrcServerID", "int"}, -- 服务器ID } -- GM清理个人邮件发送缓存 LW_COMMERCE_GM_CLEAR_MAIL = { {"nSrcServerID", "int"}, -- 服务器ID } -- 获取战区第一个服的活动时间数据 WL_COMMERCE_GET_ACT_INFO = { {"nReqServerID", "int"} -- 不存在时为0 } -- 发送给中心服活动时间数据 LW_COMMERCE_GET_ACT_INFO = { {"nOperate", "int"}, -- 0 失败 1 成功有数据 2 成功无数据 {"nReqServerID", "int"}, -- 不存在时为0 {"nSrcServerID", "int"}, -- 服务器ID {"nBatchID", "int"}, -- 批次 {"nBeginTime", "int"}, -- 开始时间 {"nEndTime", "int"}, -- 结束时间 } -- 请求中心服活动时间 LW_COMMERCE_ACT_GET_OPENTIME = { {"nSrcServerID", "int"}, -- 服务器ID } -- 回复普通服活动时间 WL_COMMERCE_ACT_GET_OPENTIME = { {"nBatchID", "int"}, -- 批次 {"nBeginTime", "int"}, -- 开始时间 {"nEndTime", "int"}, -- 结束时间 } -------------------- 跨服商业活动结束 --------------------------- -------------------- 天梯赛开始 ----------------------------------- -------------------- 天梯赛结束 -----------------------------------