mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 14:37:25 +08:00
27 lines
724 B
C#
27 lines
724 B
C#
// 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Framework.Graphics.Pooling;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.UI
|
|
{
|
|
/// <summary>
|
|
/// Pool for hit explosions of a specific type.
|
|
/// </summary>
|
|
internal class HitExplosionPool : DrawablePool<HitExplosion>
|
|
{
|
|
private readonly HitResult hitResult;
|
|
|
|
public HitExplosionPool(HitResult hitResult)
|
|
: base(15)
|
|
{
|
|
this.hitResult = hitResult;
|
|
}
|
|
|
|
protected override HitExplosion CreateNewDrawable() => new HitExplosion(hitResult);
|
|
}
|
|
}
|