mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 02:17:46 +08:00
24 lines
792 B
C#
24 lines
792 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Game.Rulesets.Edit;
|
|
using osu.Game.Rulesets.Mania.UI;
|
|
using osu.Game.Screens.Edit.Compose.Components;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit
|
|
{
|
|
public partial class ManiaBeatSnapGrid : BeatSnapGrid
|
|
{
|
|
protected override IEnumerable<Container> GetTargetContainers(HitObjectComposer composer)
|
|
{
|
|
return ((ManiaPlayfield)composer.Playfield)
|
|
.Stages
|
|
.SelectMany(stage => stage.Columns)
|
|
.Select(column => column.UnderlayElements);
|
|
}
|
|
}
|
|
}
|