mirror of
https://github.com/ppy/osu
synced 2025-01-02 12:22:13 +00:00
Rename to Position
This commit is contained in:
parent
261adfc4e6
commit
2b7fb2b71d
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user