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