Remove IIsLegacy, expose LegacyBeatmap without a public constructor.

This commit is contained in:
smoogipooo 2017-03-18 18:32:54 +09:00
parent 74a1837a05
commit 26b0bb02d8
3 changed files with 2 additions and 15 deletions

View File

@ -1,12 +0,0 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Beatmaps.Legacy
{
/// <summary>
/// A Beatmap that was loaded from a legacy .osu beatmap file (version &lt;=15).
/// </summary>
public interface IIsLegacy
{
}
}

View File

@ -6,13 +6,13 @@ namespace osu.Game.Beatmaps.Legacy
/// <summary> /// <summary>
/// A type of Beatmap loaded from a legacy .osu beatmap file (version &lt;=15). /// A type of Beatmap loaded from a legacy .osu beatmap file (version &lt;=15).
/// </summary> /// </summary>
internal class LegacyBeatmap : Beatmap, IIsLegacy public class LegacyBeatmap : Beatmap
{ {
/// <summary> /// <summary>
/// Constructs a new beatmap. /// Constructs a new beatmap.
/// </summary> /// </summary>
/// <param name="original">The original beatmap to use the parameters of.</param> /// <param name="original">The original beatmap to use the parameters of.</param>
public LegacyBeatmap(Beatmap original = null) internal LegacyBeatmap(Beatmap original = null)
: base(original) : base(original)
{ {
HitObjects = original?.HitObjects ?? null; HitObjects = original?.HitObjects ?? null;

View File

@ -77,7 +77,6 @@
<Compile Include="Beatmaps\IBeatmapProcessor.cs" /> <Compile Include="Beatmaps\IBeatmapProcessor.cs" />
<Compile Include="Beatmaps\Legacy\LegacyBeatmap.cs" /> <Compile Include="Beatmaps\Legacy\LegacyBeatmap.cs" />
<Compile Include="Beatmaps\Timing\TimingInfo.cs" /> <Compile Include="Beatmaps\Timing\TimingInfo.cs" />
<Compile Include="Beatmaps\Legacy\IIsLegacy.cs" />
<Compile Include="Database\ScoreDatabase.cs" /> <Compile Include="Database\ScoreDatabase.cs" />
<Compile Include="Graphics\Backgrounds\Triangles.cs" /> <Compile Include="Graphics\Backgrounds\Triangles.cs" />
<Compile Include="Graphics\Cursor\CursorTrail.cs" /> <Compile Include="Graphics\Cursor\CursorTrail.cs" />