mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Move IBeatmap
arg into context
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Edit.Checks.Components;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.Objects.Types;
|
||||
@ -22,15 +21,15 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
new IssueTemplateConcurrentDifferent(this)
|
||||
};
|
||||
|
||||
public IEnumerable<Issue> Run(IBeatmap beatmap, BeatmapVerifierContext context)
|
||||
public IEnumerable<Issue> Run(BeatmapVerifierContext context)
|
||||
{
|
||||
for (int i = 0; i < beatmap.HitObjects.Count - 1; ++i)
|
||||
for (int i = 0; i < context.Beatmap.HitObjects.Count - 1; ++i)
|
||||
{
|
||||
var hitobject = beatmap.HitObjects[i];
|
||||
var hitobject = context.Beatmap.HitObjects[i];
|
||||
|
||||
for (int j = i + 1; j < beatmap.HitObjects.Count; ++j)
|
||||
for (int j = i + 1; j < context.Beatmap.HitObjects.Count; ++j)
|
||||
{
|
||||
var nextHitobject = beatmap.HitObjects[j];
|
||||
var nextHitobject = context.Beatmap.HitObjects[j];
|
||||
|
||||
// Accounts for rulesets with hitobjects separated by columns, such as Mania.
|
||||
// In these cases we only care about concurrent objects within the same column.
|
||||
|
Reference in New Issue
Block a user