Move PreferredPlayMode to WorkingBeatmap.

This commit is contained in:
Dean Herbert
2017-03-05 17:45:40 +09:00
parent 4e4408cd20
commit 7afcac3660
4 changed files with 13 additions and 8 deletions

View File

@ -8,6 +8,7 @@ using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps.Formats;
using osu.Game.Beatmaps.IO;
using osu.Game.Database;
using osu.Game.Modes;
namespace osu.Game.Beatmaps
{
@ -17,6 +18,14 @@ namespace osu.Game.Beatmaps
public readonly BeatmapSetInfo BeatmapSetInfo;
/// <summary>
/// A play mode that is preferred for this beatmap. This allows for conversion between game modes where feasible,
/// but does not gurantee an outcome.
/// </summary>
public PlayMode PreferredPlayMode;
public PlayMode PlayMode => beatmap?.BeatmapInfo?.Mode > PlayMode.Osu ? beatmap.BeatmapInfo.Mode : PreferredPlayMode;
public readonly bool WithStoryboard;
protected abstract ArchiveReader GetReader();