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