Files
JJBB/Assets/Project/Script/LuaScripts/NetWork/Lua/Distributes/LuaDistributesReqSweepDailyCopy.txt

35 lines
938 B
Plaintext
Raw Normal View History

2024-08-23 15:49:34 +08:00
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