mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Rename CursorPosition -< PositionOffset
This commit is contained in:
parent
8c9506197d
commit
ef56225d9a
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user