LuaDistributesReqPropTips = {} LuaDistributesReqPropTips.sysID = 45 LuaDistributesReqPropTips.cmdID = 8 function LuaDistributesReqPropTips.ExtraPacket(memStream) -- print('ExtraPacket:'..memStream.Length) local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream) local sysID = binaryReader:ReadByte() local cmdID = binaryReader:ReadByte() packet = LuaDistributesReqPropTips.ReadPacket(binaryReader) return packet end function LuaDistributesReqPropTips.SendPacket(packet) local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesReqPropTips.sysID, LuaDistributesReqPropTips.cmdID) if(packet['groupId'] == nil) then packet['groupId'] = 0 end message:WriteInt(packet['groupId']) if(packet['boxId'] == nil) then packet['boxId'] = 0 end message:WriteInt(packet['boxId']) message:Send() end function LuaDistributesReqPropTips.ReadPacket(binaryReader) local packet = {} packet['groupId'] = binaryReader:ReadInt32() packet['boxId'] = binaryReader:ReadInt32() return packet end