// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Framework.Allocation; using osuTK; namespace osu.Game.Rulesets.Edit { /// /// A snap provider which given a proposed position for a hit object, potentially offers a more correct position and time value inferred from the context of the beatmap. /// [Cached] public interface IPositionSnapProvider { /// /// Given a position, find a valid time and position snap. /// /// The screen-space position to be snapped. /// The type of snapping to apply. /// The time and position post-snapping. SnapResult FindSnappedPositionAndTime(Vector2 screenSpacePosition, SnapType snapType = SnapType.All); } }