42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
|
LuaDistributesEquipSuitLevelUpReq = {}
|
||
|
|
||
|
LuaDistributesEquipSuitLevelUpReq.sysID = 44
|
||
|
LuaDistributesEquipSuitLevelUpReq.cmdID = 3
|
||
|
|
||
|
function LuaDistributesEquipSuitLevelUpReq.ExtraPacket(memStream)
|
||
|
-- print('ExtraPacket:'..memStream.Length)
|
||
|
|
||
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
||
|
local sysID = binaryReader:ReadByte()
|
||
|
local cmdID = binaryReader:ReadByte()
|
||
|
packet = LuaDistributesEquipSuitLevelUpReq.ReadPacket(binaryReader)
|
||
|
|
||
|
return packet
|
||
|
end
|
||
|
|
||
|
function LuaDistributesEquipSuitLevelUpReq.SendPacket(packet)
|
||
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesEquipSuitLevelUpReq.sysID, LuaDistributesEquipSuitLevelUpReq.cmdID)
|
||
|
if(packet['equipGuid'] == nil) then
|
||
|
packet['equipGuid'] = 0
|
||
|
end
|
||
|
message:WriteLong(packet['equipGuid'])
|
||
|
|
||
|
if(packet['suitType'] == nil) then
|
||
|
packet['suitType'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['suitType'])
|
||
|
|
||
|
|
||
|
message:Send()
|
||
|
end
|
||
|
|
||
|
function LuaDistributesEquipSuitLevelUpReq.ReadPacket(binaryReader)
|
||
|
|
||
|
local packet = {}
|
||
|
packet['equipGuid'] = binaryReader:ReadInt64()
|
||
|
|
||
|
packet['suitType'] = binaryReader:ReadInt32()
|
||
|
|
||
|
|
||
|
return packet
|
||
|
end
|