42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
LuaDistributesValhallaInstanceActionReq = {}
|
|
|
|
LuaDistributesValhallaInstanceActionReq.sysID = 46
|
|
LuaDistributesValhallaInstanceActionReq.cmdID = 52
|
|
|
|
function LuaDistributesValhallaInstanceActionReq.ExtraPacket(memStream)
|
|
-- print('ExtraPacket:'..memStream.Length)
|
|
|
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
|
local sysID = binaryReader:ReadByte()
|
|
local cmdID = binaryReader:ReadByte()
|
|
packet = LuaDistributesValhallaInstanceActionReq.ReadPacket(binaryReader)
|
|
|
|
return packet
|
|
end
|
|
|
|
function LuaDistributesValhallaInstanceActionReq.SendPacket(packet)
|
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesValhallaInstanceActionReq.sysID, LuaDistributesValhallaInstanceActionReq.cmdID)
|
|
if(packet['id'] == nil) then
|
|
packet['id'] = 0
|
|
end
|
|
message:WriteInt(packet['id'])
|
|
|
|
if(packet['fubenId'] == nil) then
|
|
packet['fubenId'] = 0
|
|
end
|
|
message:WriteInt(packet['fubenId'])
|
|
|
|
|
|
message:Send()
|
|
end
|
|
|
|
function LuaDistributesValhallaInstanceActionReq.ReadPacket(binaryReader)
|
|
|
|
local packet = {}
|
|
packet['id'] = binaryReader:ReadInt32()
|
|
|
|
packet['fubenId'] = binaryReader:ReadInt32()
|
|
|
|
|
|
return packet
|
|
end |