2021-03-14 22:51:38 +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.Pooling;
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.UI
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Pool for hit explosions of a specific type.
|
|
|
|
/// </summary>
|
2022-11-24 13:32:20 +08:00
|
|
|
internal partial class HitExplosionPool : DrawablePool<HitExplosion>
|
2021-03-14 22:51:38 +08:00
|
|
|
{
|
|
|
|
private readonly HitResult hitResult;
|
|
|
|
|
|
|
|
public HitExplosionPool(HitResult hitResult)
|
|
|
|
: base(15)
|
|
|
|
{
|
|
|
|
this.hitResult = hitResult;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override HitExplosion CreateNewDrawable() => new HitExplosion(hitResult);
|
|
|
|
}
|
|
|
|
}
|