36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
|
LuaDistributesValhallaInstanceAllRet = {}
|
||
|
|
||
|
LuaDistributesValhallaInstanceAllRet.sysID = 46
|
||
|
LuaDistributesValhallaInstanceAllRet.cmdID = 51
|
||
|
|
||
|
function LuaDistributesValhallaInstanceAllRet.ExtraPacket(memStream)
|
||
|
-- print('ExtraPacket:'..memStream.Length)
|
||
|
|
||
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
||
|
local sysID = binaryReader:ReadByte()
|
||
|
local cmdID = binaryReader:ReadByte()
|
||
|
packet = LuaDistributesValhallaInstanceAllRet.ReadPacket(binaryReader)
|
||
|
|
||
|
return packet
|
||
|
end
|
||
|
|
||
|
function LuaDistributesValhallaInstanceAllRet.SendPacket(packet)
|
||
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesValhallaInstanceAllRet.sysID, LuaDistributesValhallaInstanceAllRet.cmdID)
|
||
|
require "LuaDistributesValhallaInstance"
|
||
|
LuaDistributesValhallaInstance.WritePacket(packet['data'], binaryWriter)
|
||
|
|
||
|
|
||
|
|
||
|
message:Send()
|
||
|
end
|
||
|
|
||
|
function LuaDistributesValhallaInstanceAllRet.ReadPacket(binaryReader)
|
||
|
|
||
|
local packet = {}
|
||
|
require "LuaDistributesValhallaInstance"
|
||
|
packet['data'] = LuaDistributesValhallaInstance.ReadPacket(binaryReader)
|
||
|
|
||
|
|
||
|
|
||
|
return packet
|
||
|
end
|