2022-11-02 14:45:32 +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;
|
|
|
|
using osu.Game.Skinning;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Skinning.Argon
|
|
|
|
{
|
|
|
|
public class TaikoArgonSkinTransformer : SkinTransformer
|
|
|
|
{
|
|
|
|
public TaikoArgonSkinTransformer(ISkin skin)
|
|
|
|
: base(skin)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public override Drawable? GetDrawableComponent(ISkinComponent component)
|
|
|
|
{
|
|
|
|
switch (component)
|
|
|
|
{
|
|
|
|
case TaikoSkinComponent catchComponent:
|
|
|
|
// TODO: Once everything is finalised, consider throwing UnsupportedSkinComponentException on missing entries.
|
|
|
|
switch (catchComponent.Component)
|
|
|
|
{
|
|
|
|
case TaikoSkinComponents.CentreHit:
|
2022-11-02 15:52:09 +08:00
|
|
|
return new ArgonCentreCirclePiece();
|
|
|
|
|
|
|
|
case TaikoSkinComponents.RimHit:
|
|
|
|
return new ArgonRimCirclePiece();
|
2022-11-07 12:16:51 +08:00
|
|
|
|
|
|
|
case TaikoSkinComponents.PlayfieldBackgroundLeft:
|
|
|
|
return new ArgonPlayfieldBackgroundLeft();
|
|
|
|
|
|
|
|
case TaikoSkinComponents.PlayfieldBackgroundRight:
|
|
|
|
return new ArgonPlayfieldBackgroundRight();
|
2022-11-07 12:43:04 +08:00
|
|
|
|
|
|
|
case TaikoSkinComponents.HitTarget:
|
|
|
|
return new ArgonHitTarget();
|
2022-11-07 13:01:18 +08:00
|
|
|
|
|
|
|
case TaikoSkinComponents.BarLine:
|
|
|
|
return new ArgonBarLine();
|
2022-11-07 14:07:47 +08:00
|
|
|
|
|
|
|
case TaikoSkinComponents.DrumRollBody:
|
|
|
|
return new ArgonElongatedCirclePiece();
|
2022-11-02 14:45:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return base.GetDrawableComponent(component);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|