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:
parent
faf07ab51a
commit
3b0445a244
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user