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