35 lines
963 B
Plaintext
35 lines
963 B
Plaintext
|
LuaDistributesReqChildrenFollow = {}
|
||
|
|
||
|
LuaDistributesReqChildrenFollow.sysID = 49
|
||
|
LuaDistributesReqChildrenFollow.cmdID = 7
|
||
|
|
||
|
function LuaDistributesReqChildrenFollow.ExtraPacket(memStream)
|
||
|
-- print('ExtraPacket:'..memStream.Length)
|
||
|
|
||
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
||
|
local sysID = binaryReader:ReadByte()
|
||
|
local cmdID = binaryReader:ReadByte()
|
||
|
packet = LuaDistributesReqChildrenFollow.ReadPacket(binaryReader)
|
||
|
|
||
|
return packet
|
||
|
end
|
||
|
|
||
|
function LuaDistributesReqChildrenFollow.SendPacket(packet)
|
||
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesReqChildrenFollow.sysID, LuaDistributesReqChildrenFollow.cmdID)
|
||
|
if(packet['childrenGuid'] == nil) then
|
||
|
packet['childrenGuid'] = 0
|
||
|
end
|
||
|
message:WriteLong(packet['childrenGuid'])
|
||
|
|
||
|
|
||
|
message:Send()
|
||
|
end
|
||
|
|
||
|
function LuaDistributesReqChildrenFollow.ReadPacket(binaryReader)
|
||
|
|
||
|
local packet = {}
|
||
|
packet['childrenGuid'] = binaryReader:ReadInt64()
|
||
|
|
||
|
|
||
|
return packet
|
||
|
end
|