From 27b390e8c29a178f9a540c299ae17d320d1b99b6 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 16 Feb 2023 17:53:13 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=B3=95=E7=9B=B8=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E6=8F=90=E4=BA=A4"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit cd865d4df53b9c5a5d94fb95bda39473bc0eadd3. --- .../~Lua/Modules/Net/NetManager.lua | 75 ------------------- 1 file changed, 75 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua b/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua index 1090e368fd..4f7a12142c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua @@ -560,31 +560,6 @@ function this.AllEquipTreasureRequest(_index, func) end end) end - ---请求所有法相数据 -function this.GetAllFaXiangRequest(_index, func) - local data = PlayerInfoProto_pb.GetAllFaxiangEquipRequest() - data.page = _index - local msg = data:SerializeToString() - Network:SendMessageWithCallBack(MessageTypeProto_pb.GET_ALL_FAXIANG_EQUIP_REQUEST, MessageTypeProto_pb.GET_ALL_FAXIANG_EQUIP_RESPONSE, msg, function(buffer) - local data = buffer:DataByte() - local msg = PlayerInfoProto_pb.GetAllFaxiangEquipResponse() - msg:ParseFromString(data) - LogError("11111111111111 msg.equips len=="..#msg.equips) - FaXiangManager.InitAllEquipTreasure(msg.equips) - if msg.isFinish then - LogError("11111111111111 2222222222222") - if func then - func(msg) - end - else - _index = _index +1 - LogError("11111111111111 ".._index) - this.GetAllFaXiangRequest(_index, func) - end - end) -end - --请求穿装备 function this.EquipWearRequest(_heroId, _equipIds,_type, func) local data = HeroInfoProto_pb.EquipWearRequest() @@ -609,56 +584,6 @@ function this.EquipWearRequest(_heroId, _equipIds,_type, func) end end) end - ---请求穿脱法相 -function this.WearFaxiangEquipRequest(_heroId,_faxiangId,_type,func) - local data = PlayerInfoProto_pb.WearFaxiangEquipRequest() - data.heroId = _heroId - data.type =_type - data.faxiangID=_faxiangId - local msg = data:SerializeToString() - Network:SendMessageWithCallBack(MessageTypeProto_pb.WEAR_FAXIANG_EQUIP_REQUEST, MessageTypeProto_pb.WEAR_FAXIANG_EQUIP_RESPONSE, msg, function(buffer) - local data = buffer:DataByte() - --local msg = HeroInfoProto_pb.GetAllEquipResponse() - --msg:ParseFromString(data) - --设置战斗力脏数据 - if _type == 1 then - HeroPropManager.SetDirtyByType(_heroId, Hero_Prop_Type.Equip) - else - HeroPropManager.SetDirtyByType(_heroId, Hero_Prop_Type.EquipTreasure) - end - if func then - func(msg) - end - end) -end - ---请求法相升级升星 -function this.StrongthenFaxiangEquipRequest(_faxiangId,_lv,_type,func) - local data = PlayerInfoProto_pb.StrongthenFaxiangEquipRequest() - data.faxiangID = _faxiangId - data.action =_type - data.targetLv=_lv - local msg = data:SerializeToString() - Network:SendMessageWithCallBack(MessageTypeProto_pb.STRONGTHEN_FAXIANG_EQUIP_REQUEST, MessageTypeProto_pb.STRONGTHEN_FAXIANG_EQUIP_RESPONSE, msg, function(buffer) - local data = buffer:DataByte() - - --设置战斗力脏数据 - if _type == 1 then - HeroPropManager.SetDirtyByType(_heroId, Hero_Prop_Type.Equip) - else - HeroPropManager.SetDirtyByType(_heroId, Hero_Prop_Type.EquipTreasure) - end - if func then - func(msg) - end - end) -end - - - - - --请求脱装备 function this.EquipUnLoadOptRequest(_heroId, _equipIds, _type,func) local data = HeroInfoProto_pb.EquipUnLoadOptRequest()