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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user