2020-05-14 10:17:24 +00:00
|
|
|
|
// 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;
|
2023-10-10 04:35:06 +00:00
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2020-05-27 14:15:16 +00:00
|
|
|
|
using osu.Game.Rulesets.Edit;
|
|
|
|
|
using osu.Game.Rulesets.Mania.UI;
|
2023-10-17 07:42:36 +00:00
|
|
|
|
using osu.Game.Screens.Edit.Compose.Components;
|
2020-05-14 10:17:24 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit
|
|
|
|
|
{
|
2023-10-17 07:42:36 +00:00
|
|
|
|
public partial class ManiaBeatSnapGrid : BeatSnapGrid
|
2020-05-14 10:17:24 +00:00
|
|
|
|
{
|
2023-10-17 07:42:36 +00:00
|
|
|
|
protected override IEnumerable<Container> GetTargetContainers(HitObjectComposer composer)
|
2020-05-14 10:17:24 +00:00
|
|
|
|
{
|
2023-10-17 07:42:36 +00:00
|
|
|
|
return ((ManiaPlayfield)composer.Playfield)
|
|
|
|
|
.Stages
|
|
|
|
|
.SelectMany(stage => stage.Columns)
|
|
|
|
|
.Select(column => column.UnderlayElements);
|
2020-05-14 10:17:24 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|