// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Judgements { 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 added via . /// public double TimeOffset { get; internal set; } /// /// The combo prior to this judgement occurring. /// public int ComboAtJudgement { get; internal set; } /// /// The highest combo achieved prior to this judgement occurring. /// public int HighestComboAtJudgement { get; internal set; } /// /// Whether this has a result. /// public bool HasResult => Type > HitResult.None; /// /// Whether a successful hit occurred. /// public bool IsHit => Type > HitResult.Miss; public JudgementResult(Judgement judgement) { Judgement = judgement; } } }