gitxsm 9 месяцев назад
Родитель
Сommit
b5c9968e71
3 измененных файлов с 37 добавлено и 0 удалено
  1. 14 0
      script/common/InnerHandler.lua
  2. 20 0
      script/common/InnerProto.lua
  3. 3 0
      script/common/InnerProtoID.lua

+ 14 - 0
script/common/InnerHandler.lua

@@ -27,6 +27,9 @@ local JjcNewLadderMidder = require("jjcnewladder.jjcNewLadderMiddle")
 local RebateLogic = require("platform.RebateLogic")
 local GodsAreaNS = require("godsArea.GodsAreaNS")
 local GodsAreaCS = require("godsArea.GodsAreaCS")
+local BattleDataNS = require("battleDataManager.BattleDataNS")
+local BattleDataCS = require("battleDataManager.BattleDataCS")
+
 
 function LW_HELLO(fd, msg)
 	if _G.is_middle ~= true then return end
@@ -78,6 +81,7 @@ end
 
 
 ----------------------------------------通用协议---------------------------------------
+
 --------------- 战斗录像--------------------------------------
 -- 向跨服查询录像数据
 function LW_COMBAT_VIDEO_QUERY(fd, msg)
@@ -96,6 +100,16 @@ function LW_COMBAT_VIDEO_SAVE(fd, msg)
 end
 --------------------------------------------------------------
 
+-- 跨服通知普通服上传战斗数据
+-- function WL_COMBAT_DATA(fd, msg)
+--     BattleDataNS.CreateBattleData(fd, msg)
+-- end
+
+-- function LW_COMBAT_DATA(fd, msg)
+--     if _G.is_middle ~= true then return end
+--     BattleDataCS.BattleDataHandleManager(fd, msg)
+-- end
+
 --------------------------------------------------------------------------------------
 
 

+ 20 - 0
script/common/InnerProto.lua

@@ -68,6 +68,26 @@ LW_COMBAT_VIDEO_SAVE = {
 
 --------------------------------------------------------------
 
+
+-----------------获取战斗数据----------------------------------
+-- WL_COMBAT_DATA = {
+--   {"playerUuid",                    "string"},    -- 玩家uuid
+--   {"moduleTag",                     "int"},       -- 请求模块标识
+--   {"combatType",                    "int"},       -- 战斗类型
+--   {"extraArgs",                     "table"},     -- 额外参数
+-- }
+
+-- LW_COMBAT_DATA = {
+--   {"errCode",                       "int"},       -- 错误码,0:正确,-1: 没有对应类型的战斗数据
+--   {"moduleTag",                     "int"},       -- 请求模块标识
+--   {"extraArgs",                     "table"},     -- 额外参数
+--   {"objList",                       "table"},
+--   {"helpList",                      "table"},
+--   {"roleBase",                      "table"},
+--   {"formation",                     "int"},
+--   {"jiBan",                         "table"}
+-- }
+
 -----------------------------------------------------------------------------------------
 
 

+ 3 - 0
script/common/InnerProtoID.lua

@@ -95,6 +95,9 @@ _ENV[90] = 'LW_COMBAT_VIDEO_QUERY'
 _ENV[91] = 'WL_COMBAT_VIDEO_QUERY'
 _ENV[92] = 'LW_COMBAT_VIDEO_SAVE'
 
+-- _ENV[93] = 'WL_COMBAT_DATA'
+-- _ENV[94] = 'LW_COMBAT_DATA'
+
 
 _ENV[100] = 'LW_GODSATREA_QUERY_RANKLIST'
 _ENV[101] = 'WL_GODSATREA_QUERY_RANKLIST'