1
0
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:
Marvin Schürz 2024-10-10 23:39:55 +02:00
parent de5864ab1d
commit 224c39f702
3 changed files with 5 additions and 21 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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.