35 lines
927 B
Plaintext
35 lines
927 B
Plaintext
|
LuaDistributesChildrenFashion = {}
|
||
|
|
||
|
LuaDistributesChildrenFashion.sysID = 0
|
||
|
LuaDistributesChildrenFashion.cmdID = 0
|
||
|
|
||
|
function LuaDistributesChildrenFashion.ExtraPacket(memStream)
|
||
|
-- print('ExtraPacket:'..memStream.Length)
|
||
|
|
||
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
||
|
local sysID = binaryReader:ReadByte()
|
||
|
local cmdID = binaryReader:ReadByte()
|
||
|
packet = LuaDistributesChildrenFashion.ReadPacket(binaryReader)
|
||
|
|
||
|
return packet
|
||
|
end
|
||
|
|
||
|
function LuaDistributesChildrenFashion.SendPacket(packet)
|
||
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesChildrenFashion.sysID, LuaDistributesChildrenFashion.cmdID)
|
||
|
if(packet['reserved'] == nil) then
|
||
|
packet['reserved'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['reserved'])
|
||
|
|
||
|
|
||
|
message:Send()
|
||
|
end
|
||
|
|
||
|
function LuaDistributesChildrenFashion.ReadPacket(binaryReader)
|
||
|
|
||
|
local packet = {}
|
||
|
packet['reserved'] = binaryReader:ReadInt32()
|
||
|
|
||
|
|
||
|
return packet
|
||
|
end
|