2019-12-05 12:43:38 +08:00
|
|
|
using System;
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Game.Rulesets.Objects.Types;
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Objects
|
|
|
|
{
|
|
|
|
public class PathControlPoint : IEquatable<PathControlPoint>
|
|
|
|
{
|
2019-12-05 13:38:21 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The position of this <see cref="PathControlPoint"/>.
|
|
|
|
/// </summary>
|
2019-12-05 12:43:38 +08:00
|
|
|
public readonly Bindable<Vector2> Position = new Bindable<Vector2>();
|
|
|
|
|
2019-12-05 13:38:21 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The type of path segment starting at this <see cref="PathControlPoint"/>.
|
|
|
|
/// If null, this <see cref="PathControlPoint"/> will be a part of the previous path segment.
|
|
|
|
/// </summary>
|
2019-12-05 12:43:38 +08:00
|
|
|
public readonly Bindable<PathType?> Type = new Bindable<PathType?>();
|
|
|
|
|
|
|
|
public bool Equals(PathControlPoint other) => Position.Value == other.Position.Value && Type.Value == other.Type.Value;
|
|
|
|
}
|
|
|
|
}
|