// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using osu.Game.Beatmaps.Timing; using osu.Game.Database; using System.Collections.Generic; namespace osu.Game.Beatmaps { /// /// Contains basic beatmap properties. /// /// This allows converted beatmaps () to refer to an original "base" Beatmap /// for properties that shouldn't change unless in exceptional circumstances. /// Properties here may be set to be overriden in such exceptional cases. /// /// public class BeatmapBase { private BeatmapBase original; public BeatmapBase(BeatmapBase original = null) { this.original = original; } private BeatmapInfo beatmapInfo; public BeatmapInfo BeatmapInfo { get { return beatmapInfo ?? original?.BeatmapInfo; } set { beatmapInfo = value; } } private List controlPoints; public List ControlPoints { get { return controlPoints ?? original?.ControlPoints; } set { controlPoints = value; } } private List comboColors; public List ComboColors { get { return comboColors ?? original?.ComboColors; } set { comboColors = value; } } public BeatmapMetadata Metadata => BeatmapInfo?.Metadata ?? BeatmapInfo?.BeatmapSet?.Metadata; } }