Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ppy
GitHub Repository: ppy/osu
Path: blob/master/osu.Game.Rulesets.Taiko/UI/IAnimatableHitExplosion.cs
4495 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using osu.Game.Rulesets.Objects.Drawables;

namespace osu.Game.Rulesets.Taiko.UI
{
    /// <summary>
    /// A skinnable element of a hit explosion that supports playing an animation from the current point in time.
    /// </summary>
    public interface IAnimatableHitExplosion
    {
        /// <summary>
        /// Shows the hit explosion for the supplied <paramref name="drawableHitObject"/>.
        /// </summary>
        void Animate(DrawableHitObject drawableHitObject);

        /// <summary>
        /// Transforms the hit explosion to visualise a secondary hit.
        /// </summary>
        void AnimateSecondHit();
    }
}