1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 04:42:58 +08:00

Add structure for path control points

This commit is contained in:
smoogipoo 2019-12-05 13:43:38 +09:00
parent 1622a537c0
commit 40d0700fa5

View File

@ -0,0 +1,16 @@
using System;
using osu.Framework.Bindables;
using osu.Game.Rulesets.Objects.Types;
using osuTK;
namespace osu.Game.Rulesets.Objects
{
public class PathControlPoint : IEquatable<PathControlPoint>
{
public readonly Bindable<Vector2> Position = new Bindable<Vector2>();
public readonly Bindable<PathType?> Type = new Bindable<PathType?>();
public bool Equals(PathControlPoint other) => Position.Value == other.Position.Value && Type.Value == other.Type.Value;
}
}