2021-06-04 18:46:50 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Graphics.Performance;
|
2021-07-25 23:19:51 +08:00
|
|
|
using osu.Game.Rulesets.Catch.Objects;
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
2021-06-04 18:46:50 +08:00
|
|
|
using osuTK.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.UI
|
|
|
|
{
|
|
|
|
public class HitExplosionEntry : LifetimeEntry
|
|
|
|
{
|
2021-07-25 23:19:51 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The judgement result that triggered this explosion.
|
|
|
|
/// </summary>
|
|
|
|
public JudgementResult JudgementResult { get; }
|
2021-06-04 18:46:50 +08:00
|
|
|
|
2021-07-25 23:19:51 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The hitobject which triggered this explosion.
|
|
|
|
/// </summary>
|
|
|
|
public CatchHitObject HitObject => (CatchHitObject)JudgementResult.HitObject;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The accent colour of the object caught.
|
|
|
|
/// </summary>
|
|
|
|
public Color4 ObjectColour { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The position at which the object was caught.
|
|
|
|
/// </summary>
|
|
|
|
public float Position { get; }
|
|
|
|
|
2021-08-13 03:14:46 +08:00
|
|
|
public HitExplosionEntry(double startTime, JudgementResult judgementResult, Color4 objectColour, float position)
|
2021-06-04 18:46:50 +08:00
|
|
|
{
|
|
|
|
LifetimeStart = startTime;
|
|
|
|
Position = position;
|
2021-07-25 23:19:51 +08:00
|
|
|
JudgementResult = judgementResult;
|
2021-06-04 18:46:50 +08:00
|
|
|
ObjectColour = objectColour;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|