// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulesets.Osu.Objects.Drawables; namespace osu.Game.Rulesets.Osu.Judgements { public class OsuSpinnerJudgementResult : OsuJudgementResult { /// /// The . /// public Spinner Spinner => (Spinner)HitObject; /// /// The total amount that the spinner was rotated. /// public float TotalRotation => History.TotalRotation; /// /// Stores the spinning history of the spinner.
/// Instants of movement deltas may be added or removed from this in order to calculate the total rotation for the spinner. ///
public readonly SpinnerSpinHistory History = new SpinnerSpinHistory(); /// /// Time instant at which the spin was started (the first user input which caused an increase in spin). /// public double? TimeStarted; /// /// Time instant at which the spinner has been completed (the user has executed all required spins). /// Will be null if all required spins haven't been completed. /// public double? TimeCompleted; public OsuSpinnerJudgementResult(HitObject hitObject, Judgement judgement) : base(hitObject, judgement) { } } }