Remove X setter from CatchHitObject

This commit is contained in:
ekrctb
2020-12-14 11:38:07 +09:00
parent f621d977fc
commit 7cbbd74df2
12 changed files with 36 additions and 44 deletions

View File

@ -33,14 +33,6 @@ namespace osu.Game.Rulesets.Catch.Objects
float IHasXPosition.X => OriginalX;
/// <summary>
/// An alias of <see cref="OriginalX"/> setter.
/// </summary>
public float X
{
set => OriginalX = value;
}
public readonly Bindable<float> EffectiveXBindable = new Bindable<float>();
/// <summary>

View File

@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Catch.Objects
AddNested(new TinyDroplet
{
StartTime = t + lastEvent.Value.Time,
X = OriginalX + Path.PositionAt(
OriginalX = OriginalX + Path.PositionAt(
lastEvent.Value.PathProgress + (t / sinceLastTick) * (e.PathProgress - lastEvent.Value.PathProgress)).X,
});
}
@ -93,7 +93,7 @@ namespace osu.Game.Rulesets.Catch.Objects
{
Samples = dropletSamples,
StartTime = e.Time,
X = OriginalX + Path.PositionAt(e.PathProgress).X,
OriginalX = OriginalX + Path.PositionAt(e.PathProgress).X,
});
break;
@ -104,7 +104,7 @@ namespace osu.Game.Rulesets.Catch.Objects
{
Samples = this.GetNodeSamples(nodeIndex++),
StartTime = e.Time,
X = OriginalX + Path.PositionAt(e.PathProgress).X,
OriginalX = OriginalX + Path.PositionAt(e.PathProgress).X,
});
break;
}