2021-05-12 08:29:18 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Game.Beatmaps;
|
2021-05-14 09:38:35 +08:00
|
|
|
|
|
|
|
#nullable enable
|
|
|
|
|
2021-05-12 08:29:18 +08:00
|
|
|
namespace osu.Game.Rulesets.Edit
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Represents the context provided by the beatmap verifier to the checks it runs.
|
|
|
|
/// Contains information about what is being checked and how it should be checked.
|
|
|
|
/// </summary>
|
|
|
|
public class BeatmapVerifierContext
|
|
|
|
{
|
2021-05-13 17:24:22 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The playable beatmap instance of the current beatmap.
|
|
|
|
/// </summary>
|
|
|
|
public readonly IBeatmap Beatmap;
|
|
|
|
|
2021-05-12 08:29:18 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The working beatmap instance of the current beatmap.
|
|
|
|
/// </summary>
|
|
|
|
public readonly IWorkingBeatmap WorkingBeatmap;
|
|
|
|
|
2021-05-12 08:30:21 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The difficulty level which the current beatmap is considered to be.
|
|
|
|
/// </summary>
|
2021-05-13 15:00:30 +08:00
|
|
|
public DifficultyRating InterpretedDifficulty;
|
2021-05-12 08:30:21 +08:00
|
|
|
|
2021-05-13 17:24:22 +08:00
|
|
|
public BeatmapVerifierContext(IBeatmap beatmap, IWorkingBeatmap workingBeatmap, DifficultyRating difficultyRating = DifficultyRating.ExpertPlus)
|
2021-05-12 08:29:18 +08:00
|
|
|
{
|
2021-05-13 17:24:22 +08:00
|
|
|
Beatmap = beatmap;
|
2021-05-12 08:29:18 +08:00
|
|
|
WorkingBeatmap = workingBeatmap;
|
2021-05-13 15:00:30 +08:00
|
|
|
InterpretedDifficulty = difficultyRating;
|
2021-05-12 08:29:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|