1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 04:52:57 +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;
/// <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>
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;
Result = result;
HitObject = hitObject;
LastHitObject = lastHitObject;
CursorPosition = cursorPosition;
PositionOffset = positionOffset;
}
}
}

View File

@ -156,10 +156,10 @@ namespace osu.Game.Rulesets.Osu.Statistics
foreach (var e in hitEvents)
{
if (e.LastHitObject == null || e.CursorPosition == null)
if (e.LastHitObject == null || e.PositionOffset == null)
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);
}
}
}