Remove Grid class

This commit is contained in:
Dean Herbert 2020-05-18 17:52:04 +09:00
parent d9bb90078b
commit 16e85ae0b1

View File

@ -45,7 +45,7 @@ namespace osu.Game.Rulesets.Mania.Edit
[Resolved] [Resolved]
private BindableBeatDivisor beatDivisor { get; set; } private BindableBeatDivisor beatDivisor { get; set; }
private readonly List<Grid> grids = new List<Grid>(); private readonly List<ScrollingHitObjectContainer> grids = new List<ScrollingHitObjectContainer>();
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
@ -54,10 +54,10 @@ namespace osu.Game.Rulesets.Mania.Edit
{ {
foreach (var column in stage.Columns) foreach (var column in stage.Columns)
{ {
var grid = new Grid(); var lineContainer = new ScrollingHitObjectContainer();
grids.Add(grid); grids.Add(lineContainer);
column.UnderlayElements.Add(grid); column.UnderlayElements.Add(lineContainer);
} }
} }
@ -212,18 +212,6 @@ namespace osu.Game.Rulesets.Mania.Edit
} }
} }
private class Grid : ScrollingHitObjectContainer
{
[Resolved]
private IManiaHitObjectComposer composer { get; set; }
protected override void LoadComplete()
{
base.LoadComplete();
Clock = composer.Playfield.Clock;
}
}
private class DrawableGridLine : DrawableHitObject private class DrawableGridLine : DrawableHitObject
{ {
[Resolved] [Resolved]