2022-09-27 09:52:21 +00: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.Mania.Skinning.Argon
|
|
|
|
{
|
|
|
|
public class ManiaArgonSkinTransformer : SkinTransformer
|
|
|
|
{
|
|
|
|
public ManiaArgonSkinTransformer(ISkin skin)
|
|
|
|
: base(skin)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public override Drawable? GetDrawableComponent(ISkinComponent component)
|
|
|
|
{
|
|
|
|
switch (component)
|
|
|
|
{
|
|
|
|
case ManiaSkinComponent maniaComponent:
|
2022-10-04 07:17:38 +00:00
|
|
|
// TODO: Once everything is finalised, consider throwing UnsupportedSkinComponentException on missing entries.
|
2022-09-27 09:52:21 +00:00
|
|
|
switch (maniaComponent.Component)
|
|
|
|
{
|
2022-09-27 10:48:27 +00:00
|
|
|
case ManiaSkinComponents.HitTarget:
|
|
|
|
return new ArgonHitTarget();
|
|
|
|
|
2022-09-27 09:52:21 +00:00
|
|
|
case ManiaSkinComponents.KeyArea:
|
|
|
|
return new ArgonKeyArea();
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return base.GetDrawableComponent(component);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|