1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 22:00:57 +08:00

one more constructor for tests that don't need a specified InterpretedDifficulty

This commit is contained in:
Hivie
2025-08-11 16:48:25 +01:00
Unverified
parent fb61f00466
commit c8cb167dbc
@@ -44,6 +44,16 @@ namespace osu.Game.Rulesets.Edit
OtherDifficulties = otherDifficulties ?? new List<VerifiedBeatmap>();
}
public BeatmapVerifierContext(VerifiedBeatmap currentDifficulty, IReadOnlyList<VerifiedBeatmap>? otherDifficulties = null)
{
CurrentDifficulty = currentDifficulty;
InterpretedDifficulty = DifficultyRating.ExpertPlus;
OtherDifficulties = otherDifficulties ?? new List<VerifiedBeatmap>();
}
/// <summary>
/// Backwards-compatible constructor that allows creating a context from a single playable and working beatmap.
/// </summary>
public BeatmapVerifierContext(IBeatmap beatmap, IWorkingBeatmap workingBeatmap, DifficultyRating difficultyRating = DifficultyRating.ExpertPlus)
: this(new VerifiedBeatmap(workingBeatmap, beatmap), difficultyRating)
{