2021-04-07 20:35:33 +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 System.Collections.Generic;
|
2021-04-10 20:56:30 +08:00
|
|
|
using osu.Game.Beatmaps;
|
2021-04-07 20:35:33 +08:00
|
|
|
|
2021-04-10 19:02:22 +08:00
|
|
|
namespace osu.Game.Rulesets.Edit.Checks.Components
|
2021-04-07 20:35:33 +08:00
|
|
|
{
|
2021-04-13 22:30:20 +08:00
|
|
|
/// <summary>
|
|
|
|
/// A specific check that can be run on a beatmap to verify or find issues.
|
|
|
|
/// </summary>
|
2021-04-12 16:08:08 +08:00
|
|
|
public interface ICheck
|
2021-04-07 20:35:33 +08:00
|
|
|
{
|
|
|
|
/// <summary>
|
2021-04-12 14:27:12 +08:00
|
|
|
/// The metadata for this check.
|
2021-04-07 20:35:33 +08:00
|
|
|
/// </summary>
|
2021-04-12 16:08:08 +08:00
|
|
|
public CheckMetadata Metadata { get; }
|
2021-04-07 20:35:33 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2021-04-12 14:27:12 +08:00
|
|
|
/// All possible templates for issues that this check may return.
|
2021-04-07 20:35:33 +08:00
|
|
|
/// </summary>
|
2021-04-12 16:08:08 +08:00
|
|
|
public IEnumerable<IssueTemplate> PossibleTemplates { get; }
|
2021-04-07 20:35:33 +08:00
|
|
|
|
2021-04-10 20:56:30 +08:00
|
|
|
/// <summary>
|
2021-04-12 14:27:12 +08:00
|
|
|
/// Runs this check and returns any issues detected for the provided beatmap.
|
2021-04-10 20:56:30 +08:00
|
|
|
/// </summary>
|
2021-04-20 07:31:51 +08:00
|
|
|
/// <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);
|
2021-04-07 20:35:33 +08:00
|
|
|
}
|
|
|
|
}
|