mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:33:22 +08:00
Remove IHasMutableXPosition, IHasMutableYPosition
from IHasMutablePosition
This commit is contained in:
parent
de5864ab1d
commit
224c39f702
@ -59,17 +59,9 @@ namespace osu.Game.Rulesets.Osu.Objects
|
||||
set => position.Value = value;
|
||||
}
|
||||
|
||||
public float X
|
||||
{
|
||||
get => Position.X;
|
||||
set => Position = Position with { X = value };
|
||||
}
|
||||
public float X => Position.X;
|
||||
|
||||
public float Y
|
||||
{
|
||||
get => Position.Y;
|
||||
set => Position = Position with { Y = value };
|
||||
}
|
||||
public float Y => Position.Y;
|
||||
|
||||
public Vector2 StackedPosition => Position + StackOffset;
|
||||
|
||||
|
@ -34,20 +34,12 @@ namespace osu.Game.Rulesets.Objects
|
||||
/// <summary>
|
||||
/// The X component of <see cref="Position"/>.
|
||||
/// </summary>
|
||||
public float X
|
||||
{
|
||||
get => position.X;
|
||||
set => Position = Position with { X = value };
|
||||
}
|
||||
public float X => position.X;
|
||||
|
||||
/// <summary>
|
||||
/// The Y component of <see cref="Position"/>.
|
||||
/// </summary>
|
||||
public float Y
|
||||
{
|
||||
get => position.Y;
|
||||
set => Position = Position with { Y = value };
|
||||
}
|
||||
public float Y => position.Y;
|
||||
|
||||
private PathType? type;
|
||||
|
||||
|
@ -8,7 +8,7 @@ namespace osu.Game.Rulesets.Objects.Types
|
||||
/// <summary>
|
||||
/// A HitObject that has a starting position that can be mutated.
|
||||
/// </summary>
|
||||
public interface IHasMutablePosition : IHasPosition, IHasMutableXPosition, IHasMutableYPosition
|
||||
public interface IHasMutablePosition : IHasPosition
|
||||
{
|
||||
/// <summary>
|
||||
/// The starting position of the HitObject.
|
||||
|
Loading…
Reference in New Issue
Block a user