LuaDistributesReqUpdateUpStarAssist = {} LuaDistributesReqUpdateUpStarAssist.sysID = 3 LuaDistributesReqUpdateUpStarAssist.cmdID = 52 function LuaDistributesReqUpdateUpStarAssist.ExtraPacket(memStream) -- print('ExtraPacket:'..memStream.Length) local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream) local sysID = binaryReader:ReadByte() local cmdID = binaryReader:ReadByte() packet = LuaDistributesReqUpdateUpStarAssist.ReadPacket(binaryReader) return packet end function LuaDistributesReqUpdateUpStarAssist.SendPacket(packet) local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesReqUpdateUpStarAssist.sysID, LuaDistributesReqUpdateUpStarAssist.cmdID) if(packet['actId'] == nil) then packet['actId'] = 0 end message:WriteInt(packet['actId']) if(packet['type'] == nil) then packet['type'] = 0 end message:WriteInt(packet['type']) message:Send() end function LuaDistributesReqUpdateUpStarAssist.ReadPacket(binaryReader) local packet = {} packet['actId'] = binaryReader:ReadInt32() packet['type'] = binaryReader:ReadInt32() return packet end