2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2020-05-14 18:17:24 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2023-10-10 12:35:06 +08:00
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2020-05-27 22:15:16 +08:00
|
|
|
|
using osu.Game.Rulesets.Edit;
|
|
|
|
|
using osu.Game.Rulesets.Mania.UI;
|
2023-10-17 15:42:36 +08:00
|
|
|
|
using osu.Game.Screens.Edit.Compose.Components;
|
2020-05-14 18:17:24 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit
|
|
|
|
|
{
|
2023-10-17 15:42:36 +08:00
|
|
|
|
public partial class ManiaBeatSnapGrid : BeatSnapGrid
|
2020-05-14 18:17:24 +08:00
|
|
|
|
{
|
2023-10-17 15:42:36 +08:00
|
|
|
|
protected override IEnumerable<Container> GetTargetContainers(HitObjectComposer composer)
|
2020-05-14 18:17:24 +08:00
|
|
|
|
{
|
2023-10-17 15:42:36 +08:00
|
|
|
|
return ((ManiaPlayfield)composer.Playfield)
|
|
|
|
|
.Stages
|
|
|
|
|
.SelectMany(stage => stage.Columns)
|
|
|
|
|
.Select(column => column.UnderlayElements);
|
2020-05-14 18:17:24 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|