mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Add interpreted difficulty info to BeatmapVerifierContext
Enables checks to make use of the difficulty level as shown in the settings UI.
This commit is contained in:
@ -17,9 +17,15 @@ namespace osu.Game.Rulesets.Edit
|
||||
/// </summary>
|
||||
public readonly IWorkingBeatmap WorkingBeatmap;
|
||||
|
||||
public BeatmapVerifierContext(IWorkingBeatmap workingBeatmap)
|
||||
/// <summary>
|
||||
/// The difficulty level which the current beatmap is considered to be.
|
||||
/// </summary>
|
||||
public readonly Bindable<DifficultyRating> InterpretedDifficulty;
|
||||
|
||||
public BeatmapVerifierContext(IWorkingBeatmap workingBeatmap, DifficultyRating difficultyRating = DifficultyRating.ExpertPlus)
|
||||
{
|
||||
WorkingBeatmap = workingBeatmap;
|
||||
InterpretedDifficulty = new Bindable<DifficultyRating>(difficultyRating);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user