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