1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-26 23:32:55 +08:00
osu-lazer/osu.Game/Rulesets/Edit/SnapResult.cs

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

36 lines
972 B
C#
Raw Normal View History

2020-05-20 20:03:03 +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.
2022-06-17 15:37:17 +08:00
#nullable disable
2020-05-25 18:21:53 +08:00
using osu.Game.Rulesets.UI;
2020-05-20 20:03:03 +08:00
using osuTK;
namespace osu.Game.Rulesets.Edit
{
/// <summary>
/// The result of a position/time snapping process.
/// </summary>
public class SnapResult
{
/// <summary>
/// The screen space position, potentially altered for snapping.
/// </summary>
public Vector2 ScreenSpacePosition;
/// <summary>
/// The resultant time for snapping, if a value could be attained.
/// </summary>
public double? Time;
2020-05-25 18:21:53 +08:00
public readonly Playfield Playfield;
public SnapResult(Vector2 screenSpacePosition, double? time, Playfield playfield = null)
2020-05-20 20:03:03 +08:00
{
ScreenSpacePosition = screenSpacePosition;
Time = time;
2020-05-25 18:21:53 +08:00
Playfield = playfield;
2020-05-20 20:03:03 +08:00
}
}
}