1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 17:32:54 +08:00

Improve comment for PreferredPlayMode and allow null.

This commit is contained in:
Dean Herbert 2017-03-06 14:08:58 +09:00
parent faf07ab51a
commit 3b0445a244
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -19,12 +19,12 @@ 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.
/// A play mode that is preferred for this beatmap. PlayMode will become this mode where conversion is feasible,
/// or otherwise to the beatmap's default.
/// </summary>
public PlayMode PreferredPlayMode;
public PlayMode? PreferredPlayMode;
public PlayMode PlayMode => beatmap?.BeatmapInfo?.Mode > PlayMode.Osu ? beatmap.BeatmapInfo.Mode : PreferredPlayMode;
public PlayMode PlayMode => beatmap?.BeatmapInfo?.Mode > PlayMode.Osu || !PreferredPlayMode.HasValue ? beatmap.BeatmapInfo.Mode : PreferredPlayMode.Value;
public readonly bool WithStoryboard;