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