// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Performance; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Judgements; using osuTK.Graphics; #nullable enable namespace osu.Game.Rulesets.Catch.UI { public class HitExplosionEntry : LifetimeEntry { /// /// The judgement result that triggered this explosion. /// public JudgementResult JudgementResult { get; } /// /// The hitobject which triggered this explosion. /// public CatchHitObject HitObject => (CatchHitObject)JudgementResult.HitObject; /// /// The accent colour of the object caught. /// public Color4 ObjectColour { get; } /// /// The position at which the object was caught. /// public float Position { get; } public HitExplosionEntry(JudgementResult judgementResult, Color4 objectColour, float position, double startTime) { LifetimeStart = startTime; Position = position; JudgementResult = judgementResult; ObjectColour = objectColour; } } }