Drop BeatmapSet, only BeatmapSetInfo is necessary

This commit is contained in:
Drew DeVault 2016-10-18 15:48:24 -04:00
parent 768dd38fa0
commit 7bdf1fe1bf
3 changed files with 5 additions and 20 deletions

View File

@ -1,19 +0,0 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using osu.Game.Database;
using osu.Game.Users;
namespace osu.Game.Beatmaps
{
/// <summary>
/// A beatmap set contains multiple beatmap (difficulties).
/// </summary>
public class BeatmapSet
{
public BeatmapSetInfo BeatmapSetInfo { get; set; }
public List<Beatmap> Beatmaps { get; protected set; } = new List<Beatmap>();
public User Creator { get; set; }
}
}

View File

@ -82,6 +82,11 @@ public ArchiveReader GetReader(BeatmapSetInfo beatmapSet)
return ArchiveReader.GetReader(storage, beatmapSet.Path);
}
public BeatmapSetInfo GetBeatmapSet(int id)
{
return Query<BeatmapSetInfo>().Where(s => s.BeatmapSetID == id).FirstOrDefault();
}
public Beatmap GetBeatmap(BeatmapInfo beatmapInfo)
{
var beatmapSet = Query<BeatmapSetInfo>()

View File

@ -61,7 +61,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Beatmaps\Beatmap.cs" />
<Compile Include="Beatmaps\BeatmapSet.cs" />
<Compile Include="Beatmaps\Objects\Catch\CatchConverter.cs" />
<Compile Include="Beatmaps\Objects\Catch\Drawable\DrawableFruit.cs" />
<Compile Include="Beatmaps\Objects\HitObject.cs" />