mirror of
https://github.com/ppy/osu.git
synced 2025-01-23 13:32:56 +08:00
29 lines
870 B
C#
29 lines
870 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Rulesets.Edit;
|
|
using osu.Game.Rulesets.Mania.UI;
|
|
using osu.Game.Screens.Edit.Screens.Compose.Layers;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit.Layers.Selection.Overlays
|
|
{
|
|
public class ManiaHitObjectColumnMaskLayer : HitObjectMaskLayer
|
|
{
|
|
public readonly Column Column;
|
|
|
|
public ManiaHitObjectColumnMaskLayer(ManiaEditPlayfield playfield, HitObjectComposer composer, Column column)
|
|
: base(playfield, composer)
|
|
{
|
|
Column = column;
|
|
}
|
|
|
|
public void CreateMasks() => AddMasks();
|
|
|
|
protected override void AddMasks()
|
|
{
|
|
foreach (var obj in Column.HitObjects.Objects)
|
|
AddMask(obj);
|
|
}
|
|
}
|
|
}
|