脚本修改

dev_chengFeng
yuanshuai 2023-04-07 13:48:56 +08:00
parent 0681ff2a30
commit 2653838516
1 changed files with 1 additions and 16 deletions

View File

@ -7163,21 +7163,6 @@ function NetManager.RequestMagicSoldierSpilt(_id,_func)
end)
end
--神兵涅槃
function NetManager.RequestMagicSoldierReturn(_id,_func)
local data = PlayerInfoProto_pb.MagicSoldierReturnRequest()
data.id=_id
local msg = data:SerializeToString()
Network:SendMessageWithCallBack(MessageTypeProto_pb.MAGIC_SOLDIER_RETURN_REQUEST,MessageTypeProto_pb.MAGIC_SOLDIER_RETURN_RESPONSE,msg,function(buffer)
local data = buffer:DataByte()
local msg = PlayerInfoProto_pb.MagicSoldierReturnResponse()
msg:ParseFromString(data)
if _func then
_func(msg)
end
end)
end
--神兵强化 //1升级2升星
@ -7215,7 +7200,7 @@ function this.MagicSoldierReturnRequest(Did, func)
local msg = data:SerializeToString()
Network:SendMessageWithCallBack(MessageTypeProto_pb.MAGIC_SOLDIER_RETURN_REQUEST, MessageTypeProto_pb.MAGIC_SOLDIER_RETURN_RESPONSE, msg, function(buffer)
local data = buffer:DataByte()
local msg = HeroInfoProto_pb.MagicSoldierReturnResponse()
local msg = PlayerInfoProto_pb.MagicSoldierReturnResponse()
msg:ParseFromString(data)
if func then
func(msg)