49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
|
LuaDistributesValhallaGeneralEquipReq = {}
|
||
|
|
||
|
LuaDistributesValhallaGeneralEquipReq.sysID = 46
|
||
|
LuaDistributesValhallaGeneralEquipReq.cmdID = 24
|
||
|
|
||
|
function LuaDistributesValhallaGeneralEquipReq.ExtraPacket(memStream)
|
||
|
-- print('ExtraPacket:'..memStream.Length)
|
||
|
|
||
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
||
|
local sysID = binaryReader:ReadByte()
|
||
|
local cmdID = binaryReader:ReadByte()
|
||
|
packet = LuaDistributesValhallaGeneralEquipReq.ReadPacket(binaryReader)
|
||
|
|
||
|
return packet
|
||
|
end
|
||
|
|
||
|
function LuaDistributesValhallaGeneralEquipReq.SendPacket(packet)
|
||
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesValhallaGeneralEquipReq.sysID, LuaDistributesValhallaGeneralEquipReq.cmdID)
|
||
|
if(packet['guid'] == nil) then
|
||
|
packet['guid'] = 0
|
||
|
end
|
||
|
message:WriteLong(packet['guid'])
|
||
|
|
||
|
if(packet['equipGuid'] == nil) then
|
||
|
packet['equipGuid'] = 0
|
||
|
end
|
||
|
message:WriteLong(packet['equipGuid'])
|
||
|
|
||
|
if(packet['isEquip'] == nil) then
|
||
|
packet['isEquip'] = 0
|
||
|
end
|
||
|
message:WriteByte(packet['isEquip'])
|
||
|
|
||
|
|
||
|
message:Send()
|
||
|
end
|
||
|
|
||
|
function LuaDistributesValhallaGeneralEquipReq.ReadPacket(binaryReader)
|
||
|
|
||
|
local packet = {}
|
||
|
packet['guid'] = binaryReader:ReadInt64()
|
||
|
|
||
|
packet['equipGuid'] = binaryReader:ReadInt64()
|
||
|
|
||
|
packet['isEquip'] = binaryReader:ReadByte()
|
||
|
|
||
|
|
||
|
return packet
|
||
|
end
|