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