mirror of
https://github.com/ppy/osu.git
synced 2024-11-20 08:12:54 +08:00
8656176ab8
This is different from the working beatmap's `.Beatmap` property in that it is mutated by the ruleset/editor. So hit objects, for example, are actually of type `Slider` and such instead of the legacy `ConvertSlider`. This should be preferred over `workingBeatmap.Beatmap`.
32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
// 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 System.Collections.Generic;
|
|
using osu.Game.Beatmaps;
|
|
|
|
namespace osu.Game.Rulesets.Edit.Checks.Components
|
|
{
|
|
/// <summary>
|
|
/// A specific check that can be run on a beatmap to verify or find issues.
|
|
/// </summary>
|
|
public interface ICheck
|
|
{
|
|
/// <summary>
|
|
/// The metadata for this check.
|
|
/// </summary>
|
|
public CheckMetadata Metadata { get; }
|
|
|
|
/// <summary>
|
|
/// All possible templates for issues that this check may return.
|
|
/// </summary>
|
|
public IEnumerable<IssueTemplate> PossibleTemplates { get; }
|
|
|
|
/// <summary>
|
|
/// Runs this check and returns any issues detected for the provided beatmap.
|
|
/// </summary>
|
|
/// <param name="playableBeatmap">The playable beatmap of the beatmap to run the check on.</param>
|
|
/// <param name="workingBeatmap">The working beatmap of the beatmap to run the check on.</param>
|
|
public IEnumerable<Issue> Run(IBeatmap playableBeatmap, IWorkingBeatmap workingBeatmap);
|
|
}
|
|
}
|