1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 09:42:54 +08:00

Make x/y position mutable in OsuHitObject

This commit is contained in:
Marvin Schürz 2024-10-08 21:25:03 +02:00
parent 1d953e0e6f
commit 307d52549e

View File

@ -59,8 +59,17 @@ namespace osu.Game.Rulesets.Osu.Objects
set => position.Value = value;
}
public float X => Position.X;
public float Y => Position.Y;
public float X
{
get => Position.X;
set => Position = Position with { X = value };
}
public float Y
{
get => Position.Y;
set => Position = Position with { Y = value };
}
public Vector2 StackedPosition => Position + StackOffset;