1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 18:27:18 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Edit/OsuDistanceSnapGrid.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
710 B
C#
Raw Normal View History

2019-10-11 17:13:28 +09: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.
2022-06-17 16:37:17 +09:00
#nullable disable
using JetBrains.Annotations;
using osu.Game.Rulesets.Objects;
2019-10-11 17:13:28 +09:00
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Screens.Edit.Compose.Components;
namespace osu.Game.Rulesets.Osu.Edit
{
public partial class OsuDistanceSnapGrid : CircularDistanceSnapGrid
2019-10-11 17:13:28 +09:00
{
public OsuDistanceSnapGrid(OsuHitObject hitObject, [CanBeNull] OsuHitObject nextHitObject = null)
: base(hitObject, hitObject.StackedEndPosition, hitObject.GetEndTime(), nextHitObject?.StartTime - 1)
2019-10-11 17:13:28 +09:00
{
2019-10-16 20:05:25 +09:00
Masking = true;
2019-10-11 17:13:28 +09:00
}
}
}