1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 16:23:39 +08:00

add backwards-compatible ctor that allows creating context from a given working and playable single beatmap

more productive than adjusting every single test
This commit is contained in:
Hivie
2025-08-11 15:40:25 +01:00
Unverified
parent fd6cf680b9
commit f0ca3304b8
@@ -44,6 +44,11 @@ namespace osu.Game.Rulesets.Edit
OtherDifficulties = otherDifficulties ?? new List<VerifiedBeatmap>();
}
public BeatmapVerifierContext(IBeatmap beatmap, IWorkingBeatmap workingBeatmap, DifficultyRating difficultyRating = DifficultyRating.ExpertPlus)
: this(new VerifiedBeatmap(workingBeatmap, beatmap), difficultyRating)
{
}
public static BeatmapVerifierContext Create(IBeatmap beatmap, IWorkingBeatmap workingBeatmap, DifficultyRating difficultyRating = DifficultyRating.ExpertPlus, BeatmapManager? beatmapManager = null)
{
var beatmapSet = beatmap.BeatmapInfo.BeatmapSet;