1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:03:22 +08:00

Rename CursorPosition -< PositionOffset

This commit is contained in:
smoogipoo 2020-06-19 19:43:46 +09:00
parent 8c9506197d
commit ef56225d9a
2 changed files with 6 additions and 6 deletions

View File

@ -88,17 +88,17 @@ namespace osu.Game.Rulesets.Osu.Scoring
public readonly HitObject LastHitObject; public readonly HitObject LastHitObject;
/// <summary> /// <summary>
/// The player's cursor position, if available, at the time of the event. /// The player's position offset, if available, at the time of the event.
/// </summary> /// </summary>
public readonly Vector2? CursorPosition; public readonly Vector2? PositionOffset;
public HitEvent(double timeOffset, HitResult result, HitObject hitObject, [CanBeNull] HitObject lastHitObject, Vector2? cursorPosition) public HitEvent(double timeOffset, HitResult result, HitObject hitObject, [CanBeNull] HitObject lastHitObject, Vector2? positionOffset)
{ {
TimeOffset = timeOffset; TimeOffset = timeOffset;
Result = result; Result = result;
HitObject = hitObject; HitObject = hitObject;
LastHitObject = lastHitObject; LastHitObject = lastHitObject;
CursorPosition = cursorPosition; PositionOffset = positionOffset;
} }
} }
} }

View File

@ -156,10 +156,10 @@ namespace osu.Game.Rulesets.Osu.Statistics
foreach (var e in hitEvents) foreach (var e in hitEvents)
{ {
if (e.LastHitObject == null || e.CursorPosition == null) if (e.LastHitObject == null || e.PositionOffset == null)
continue; continue;
AddPoint(((OsuHitObject)e.LastHitObject).StackedEndPosition, ((OsuHitObject)e.HitObject).StackedEndPosition, e.CursorPosition.Value, radius); AddPoint(((OsuHitObject)e.LastHitObject).StackedEndPosition, ((OsuHitObject)e.HitObject).StackedEndPosition, e.PositionOffset.Value, radius);
} }
} }
} }