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:
parent
1d953e0e6f
commit
307d52549e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user