mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
This lets us access things like the background, track, etc. which are necessary for quality and filesize checks. Also improves the structure of the `CheckBackgroundTest` class in the process.
23 lines
709 B
C#
23 lines
709 B
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 System.Linq;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Rulesets.Edit;
|
|
using osu.Game.Rulesets.Edit.Checks.Components;
|
|
using osu.Game.Rulesets.Osu.Edit.Checks;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit
|
|
{
|
|
public class OsuBeatmapVerifier : IBeatmapVerifier
|
|
{
|
|
private readonly List<ICheck> checks = new List<ICheck>
|
|
{
|
|
new CheckOffscreenObjects()
|
|
};
|
|
|
|
public IEnumerable<Issue> Run(WorkingBeatmap workingBeatmap) => checks.SelectMany(check => check.Run(workingBeatmap));
|
|
}
|
|
}
|