1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Move SnapFinder from mania ruleset to osu.Game

This commit is contained in:
Justus Franklin Tumacder 2021-04-25 07:34:17 +08:00
parent eaac4fe6c7
commit e0ca44c908
3 changed files with 5 additions and 8 deletions

View File

@ -8,7 +8,7 @@ using osu.Framework.Graphics;
using osu.Framework.Input.Bindings;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mania.Skinning.Default;
using osu.Game.Rulesets.Mania.Utils;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.UI.Scrolling;
using osu.Game.Screens.Edit;

View File

@ -20,7 +20,6 @@ using osu.Game.Rulesets.Mania.Configuration;
using osu.Game.Rulesets.Mania.Objects;
using osu.Game.Rulesets.Mania.Objects.Drawables;
using osu.Game.Rulesets.Mania.Replays;
using osu.Game.Rulesets.Mania.Utils;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Drawables;
@ -84,7 +83,6 @@ namespace osu.Game.Rulesets.Mania.UI
: base(ruleset, beatmap, mods)
{
BarLines = new BarLineGenerator<BarLine>(Beatmap).BarLines;
snapFinder = new SnapFinder(Beatmap);
}

View File

@ -3,17 +3,16 @@
using System;
using osu.Framework.Utils;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Mania.Beatmaps;
using osu.Game.Rulesets.Objects;
namespace osu.Game.Rulesets.Mania.Utils
namespace osu.Game.Rulesets.Objects
{
public class SnapFinder
{
private readonly ManiaBeatmap beatmap;
private readonly IBeatmap beatmap;
public SnapFinder(ManiaBeatmap beatmap)
public SnapFinder(IBeatmap beatmap)
{
this.beatmap = beatmap;
}