mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Move SnapFinder from mania ruleset to osu.Game
This commit is contained in:
parent
eaac4fe6c7
commit
e0ca44c908
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user