mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
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.
|
||
|
|
||
|
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:
|
||
|
switch (maniaComponent.Component)
|
||
|
{
|
||
|
case ManiaSkinComponents.KeyArea:
|
||
|
return new ArgonKeyArea();
|
||
|
|
||
|
// TODO: Once everything is finalised, consider throwing UnsupportedSkinComponentException on missing entries.
|
||
|
}
|
||
|
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
return base.GetDrawableComponent(component);
|
||
|
}
|
||
|
}
|
||
|
}
|