49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
LuaDistributesValhallaRaidActionReq = {}
|
|
|
|
LuaDistributesValhallaRaidActionReq.sysID = 46
|
|
LuaDistributesValhallaRaidActionReq.cmdID = 63
|
|
|
|
function LuaDistributesValhallaRaidActionReq.ExtraPacket(memStream)
|
|
-- print('ExtraPacket:'..memStream.Length)
|
|
|
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
|
local sysID = binaryReader:ReadByte()
|
|
local cmdID = binaryReader:ReadByte()
|
|
packet = LuaDistributesValhallaRaidActionReq.ReadPacket(binaryReader)
|
|
|
|
return packet
|
|
end
|
|
|
|
function LuaDistributesValhallaRaidActionReq.SendPacket(packet)
|
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesValhallaRaidActionReq.sysID, LuaDistributesValhallaRaidActionReq.cmdID)
|
|
if(packet['serverId'] == nil) then
|
|
packet['serverId'] = 0
|
|
end
|
|
message:WriteInt(packet['serverId'])
|
|
|
|
if(packet['guid'] == nil) then
|
|
packet['guid'] = 0
|
|
end
|
|
message:WriteLong(packet['guid'])
|
|
|
|
if(packet['type'] == nil) then
|
|
packet['type'] = 0
|
|
end
|
|
message:WriteInt(packet['type'])
|
|
|
|
|
|
message:Send()
|
|
end
|
|
|
|
function LuaDistributesValhallaRaidActionReq.ReadPacket(binaryReader)
|
|
|
|
local packet = {}
|
|
packet['serverId'] = binaryReader:ReadInt32()
|
|
|
|
packet['guid'] = binaryReader:ReadInt64()
|
|
|
|
packet['type'] = binaryReader:ReadInt32()
|
|
|
|
|
|
return packet
|
|
end |