// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Objects.Drawables; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Judgements { /// /// The scoring result of a . /// public class JudgementResult { /// /// Whether this is the result of a hit or a miss. /// public HitResult Type; /// /// The which this applies for. /// public readonly Judgement Judgement; /// /// The offset from a perfect hit at which this occurred. /// Populated when this is applied via . /// public double TimeOffset { get; internal set; } /// /// The combo prior to this occurring. /// public int ComboAtJudgement { get; internal set; } /// /// The highest combo achieved prior to this occurring. /// public int HighestComboAtJudgement { get; internal set; } /// /// Whether a miss or hit occurred. /// public bool HasResult => Type > HitResult.None; /// /// Whether a successful hit occurred. /// public bool IsHit => Type > HitResult.Miss; /// /// Creates a new . /// /// The to refer to for scoring information. public JudgementResult(Judgement judgement) { Judgement = judgement; } } }