mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:43:04 +08:00
19 lines
629 B
C#
19 lines
629 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 JetBrains.Annotations;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
using osu.Game.Screens.Edit.Compose.Components;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit
|
|
{
|
|
public class OsuDistanceSnapGrid : CircularDistanceSnapGrid
|
|
{
|
|
public OsuDistanceSnapGrid(OsuHitObject hitObject, [CanBeNull] OsuHitObject nextHitObject = null)
|
|
: base(hitObject.StackedPosition, hitObject.StartTime, nextHitObject?.StartTime)
|
|
{
|
|
Masking = true;
|
|
}
|
|
}
|
|
}
|