| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- ---------------------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"}
- }
- -------------------- 请求跨服切磋结束 ---------------------------
|