// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using JetBrains.Annotations; using osu.Game.Rulesets.Objects; using osuTK; namespace osu.Game.Rulesets.Scoring { public readonly struct HitEvent { /// /// The time offset from the end of at which the event occurred. /// public readonly double TimeOffset; /// /// The hit result. /// public readonly HitResult Result; /// /// The on which the result occurred. /// public readonly HitObject HitObject; /// /// The occurring prior to . /// [CanBeNull] public readonly HitObject LastHitObject; /// /// The player's position offset, if available, at the time of the event. /// [CanBeNull] public readonly Vector2? PositionOffset; public HitEvent(double timeOffset, HitResult result, HitObject hitObject, [CanBeNull] HitObject lastHitObject, [CanBeNull] Vector2? positionOffset) { TimeOffset = timeOffset; Result = result; HitObject = hitObject; LastHitObject = lastHitObject; PositionOffset = positionOffset; } } }