From c8cb167dbc9f444cd5f8ae639952b057b31eaff4 Mon Sep 17 00:00:00 2001 From: Hivie Date: Mon, 11 Aug 2025 16:48:25 +0100 Subject: [PATCH] one more constructor for tests that don't need a specified `InterpretedDifficulty` --- osu.Game/Rulesets/Edit/BeatmapVerifierContext.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/osu.Game/Rulesets/Edit/BeatmapVerifierContext.cs b/osu.Game/Rulesets/Edit/BeatmapVerifierContext.cs index 799955a0bb..f9ad9705b5 100644 --- a/osu.Game/Rulesets/Edit/BeatmapVerifierContext.cs +++ b/osu.Game/Rulesets/Edit/BeatmapVerifierContext.cs @@ -44,6 +44,16 @@ namespace osu.Game.Rulesets.Edit OtherDifficulties = otherDifficulties ?? new List(); } + public BeatmapVerifierContext(VerifiedBeatmap currentDifficulty, IReadOnlyList? otherDifficulties = null) + { + CurrentDifficulty = currentDifficulty; + InterpretedDifficulty = DifficultyRating.ExpertPlus; + OtherDifficulties = otherDifficulties ?? new List(); + } + + /// + /// Backwards-compatible constructor that allows creating a context from a single playable and working beatmap. + /// public BeatmapVerifierContext(IBeatmap beatmap, IWorkingBeatmap workingBeatmap, DifficultyRating difficultyRating = DifficultyRating.ExpertPlus) : this(new VerifiedBeatmap(workingBeatmap, beatmap), difficultyRating) {