35 lines
889 B
Plaintext
35 lines
889 B
Plaintext
|
LuaDistributesValGDisRet = {}
|
||
|
|
||
|
LuaDistributesValGDisRet.sysID = 46
|
||
|
LuaDistributesValGDisRet.cmdID = 27
|
||
|
|
||
|
function LuaDistributesValGDisRet.ExtraPacket(memStream)
|
||
|
-- print('ExtraPacket:'..memStream.Length)
|
||
|
|
||
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
||
|
local sysID = binaryReader:ReadByte()
|
||
|
local cmdID = binaryReader:ReadByte()
|
||
|
packet = LuaDistributesValGDisRet.ReadPacket(binaryReader)
|
||
|
|
||
|
return packet
|
||
|
end
|
||
|
|
||
|
function LuaDistributesValGDisRet.SendPacket(packet)
|
||
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesValGDisRet.sysID, LuaDistributesValGDisRet.cmdID)
|
||
|
if(packet['equipGuid'] == nil) then
|
||
|
packet['equipGuid'] = 0
|
||
|
end
|
||
|
message:WriteLong(packet['equipGuid'])
|
||
|
|
||
|
|
||
|
message:Send()
|
||
|
end
|
||
|
|
||
|
function LuaDistributesValGDisRet.ReadPacket(binaryReader)
|
||
|
|
||
|
local packet = {}
|
||
|
packet['equipGuid'] = binaryReader:ReadInt64()
|
||
|
|
||
|
|
||
|
return packet
|
||
|
end
|