LuaDistributesReqSweepDailyCopy = {} LuaDistributesReqSweepDailyCopy.sysID = 34 LuaDistributesReqSweepDailyCopy.cmdID = 9 function LuaDistributesReqSweepDailyCopy.ExtraPacket(memStream) -- print('ExtraPacket:'..memStream.Length) local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream) local sysID = binaryReader:ReadByte() local cmdID = binaryReader:ReadByte() packet = LuaDistributesReqSweepDailyCopy.ReadPacket(binaryReader) return packet end function LuaDistributesReqSweepDailyCopy.SendPacket(packet) local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesReqSweepDailyCopy.sysID, LuaDistributesReqSweepDailyCopy.cmdID) if(packet['copyid'] == nil) then packet['copyid'] = 0 end message:WriteInt(packet['copyid']) message:Send() end function LuaDistributesReqSweepDailyCopy.ReadPacket(binaryReader) local packet = {} packet['copyid'] = binaryReader:ReadInt32() return packet end