Rename to Position

This commit is contained in:
smoogipoo 2020-06-22 19:04:51 +09:00
parent 261adfc4e6
commit 2b7fb2b71d
2 changed files with 7 additions and 7 deletions

View File

@ -153,10 +153,10 @@ namespace osu.Game.Rulesets.Osu.Statistics
foreach (var e in score.HitEvents.Where(e => e.HitObject is HitCircle))
{
if (e.LastHitObject == null || e.PositionOffset == null)
if (e.LastHitObject == null || e.Position == null)
continue;
AddPoint(((OsuHitObject)e.LastHitObject).StackedEndPosition, ((OsuHitObject)e.HitObject).StackedEndPosition, e.PositionOffset.Value, radius);
AddPoint(((OsuHitObject)e.LastHitObject).StackedEndPosition, ((OsuHitObject)e.HitObject).StackedEndPosition, e.Position.Value, radius);
}
}

View File

@ -34,10 +34,10 @@ namespace osu.Game.Rulesets.Scoring
public readonly HitObject LastHitObject;
/// <summary>
/// A position offset, if available, at the time of the event.
/// A position, if available, at the time of the event.
/// </summary>
[CanBeNull]
public readonly Vector2? PositionOffset;
public readonly Vector2? Position;
/// <summary>
/// Creates a new <see cref="HitEvent"/>.
@ -46,14 +46,14 @@ namespace osu.Game.Rulesets.Scoring
/// <param name="result">The <see cref="HitResult"/>.</param>
/// <param name="hitObject">The <see cref="HitObject"/> that triggered the event.</param>
/// <param name="lastHitObject">The previous <see cref="HitObject"/>.</param>
/// <param name="positionOffset">A positional offset.</param>
public HitEvent(double timeOffset, HitResult result, HitObject hitObject, [CanBeNull] HitObject lastHitObject, [CanBeNull] Vector2? positionOffset)
/// <param name="position">A position corresponding to the event.</param>
public HitEvent(double timeOffset, HitResult result, HitObject hitObject, [CanBeNull] HitObject lastHitObject, [CanBeNull] Vector2? position)
{
TimeOffset = timeOffset;
Result = result;
HitObject = hitObject;
LastHitObject = lastHitObject;
PositionOffset = positionOffset;
Position = position;
}
/// <summary>