Move {-> Default}KiaiHitExplosion

This commit is contained in:
Bartłomiej Dach 2020-11-10 13:24:32 +01:00
parent ef1036cef1
commit f245696947
2 changed files with 5 additions and 5 deletions

View File

@ -13,14 +13,14 @@
namespace osu.Game.Rulesets.Taiko.UI
{
public class KiaiHitExplosion : CircularContainer
public class DefaultKiaiHitExplosion : CircularContainer
{
public override bool RemoveWhenNotAlive => true;
public readonly DrawableHitObject JudgedObject;
private readonly HitType type;
public KiaiHitExplosion(DrawableHitObject judgedObject, HitType type)
public DefaultKiaiHitExplosion(DrawableHitObject judgedObject, HitType type)
{
JudgedObject = judgedObject;
this.type = type;

View File

@ -30,7 +30,7 @@ public class TaikoPlayfield : ScrollingPlayfield
public const float DEFAULT_HEIGHT = 178;
private Container<HitExplosion> hitExplosionContainer;
private Container<KiaiHitExplosion> kiaiExplosionContainer;
private Container<DefaultKiaiHitExplosion> kiaiExplosionContainer;
private JudgementContainer<DrawableTaikoJudgement> judgementContainer;
private ScrollingHitObjectContainer drumRollHitContainer;
internal Drawable HitTarget;
@ -97,7 +97,7 @@ private void load(OsuColour colours)
drumRollHitContainer = new DrumRollHitContainer()
}
},
kiaiExplosionContainer = new Container<KiaiHitExplosion>
kiaiExplosionContainer = new Container<DefaultKiaiHitExplosion>
{
Name = "Kiai hit explosions",
RelativeSizeAxes = Axes.Both,
@ -219,7 +219,7 @@ private void addExplosion(DrawableHitObject drawableObject, HitResult result, Hi
{
hitExplosionContainer.Add(new HitExplosion(drawableObject, result));
if (drawableObject.HitObject.Kiai)
kiaiExplosionContainer.Add(new KiaiHitExplosion(drawableObject, type));
kiaiExplosionContainer.Add(new DefaultKiaiHitExplosion(drawableObject, type));
}
private class ProxyContainer : LifetimeManagementContainer