2019-10-11 16:13:28 +08: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.
|
|
|
|
|
2019-12-10 15:00:09 +08:00
|
|
|
using JetBrains.Annotations;
|
2019-12-17 15:35:40 +08:00
|
|
|
using osu.Game.Rulesets.Objects;
|
2019-10-11 16:13:28 +08:00
|
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
|
|
using osu.Game.Screens.Edit.Compose.Components;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit
|
|
|
|
{
|
2019-10-17 14:32:02 +08:00
|
|
|
public class OsuDistanceSnapGrid : CircularDistanceSnapGrid
|
2019-10-11 16:13:28 +08:00
|
|
|
{
|
2019-12-10 15:00:09 +08:00
|
|
|
public OsuDistanceSnapGrid(OsuHitObject hitObject, [CanBeNull] OsuHitObject nextHitObject = null)
|
2019-12-17 15:35:40 +08:00
|
|
|
: base(hitObject.StackedEndPosition, hitObject.GetEndTime(), nextHitObject?.StartTime)
|
2019-10-11 16:13:28 +08:00
|
|
|
{
|
2019-10-16 19:05:25 +08:00
|
|
|
Masking = true;
|
2019-10-11 16:13:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|