mirror of
https://github.com/ppy/osu
synced 2024-12-29 18:32:39 +00:00
Add structure for path control points
This commit is contained in:
parent
1622a537c0
commit
40d0700fa5
16
osu.Game/Rulesets/Objects/PathControlPoint.cs
Normal file
16
osu.Game/Rulesets/Objects/PathControlPoint.cs
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user