mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 22:07:25 +08:00
66 lines
2.0 KiB
C#
66 lines
2.0 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.Audio.Sample;
|
|
using osu.Framework.Bindables;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Textures;
|
|
using osu.Game.Audio;
|
|
using osu.Game.Rulesets.Scoring;
|
|
using osu.Game.Skinning;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Skinning.Argon
|
|
{
|
|
public class OsuArgonSkinTransformer : ISkin
|
|
{
|
|
public OsuArgonSkinTransformer(ISkin skin)
|
|
{
|
|
}
|
|
|
|
public Drawable? GetDrawableComponent(ISkinComponent component)
|
|
{
|
|
switch (component)
|
|
{
|
|
case GameplaySkinComponent<HitResult> resultComponent:
|
|
return new ArgonJudgementPiece(resultComponent.Component);
|
|
|
|
case OsuSkinComponent osuComponent:
|
|
switch (osuComponent.Component)
|
|
{
|
|
case OsuSkinComponents.HitCircle:
|
|
case OsuSkinComponents.SliderHeadHitCircle:
|
|
return new ArgonMainCirclePiece();
|
|
|
|
case OsuSkinComponents.SliderBody:
|
|
return new ArgonSliderBody();
|
|
|
|
case OsuSkinComponents.SliderBall:
|
|
return new ArgonSliderBall();
|
|
|
|
case OsuSkinComponents.SliderScorePoint:
|
|
return new ArgonSliderScorePoint();
|
|
}
|
|
|
|
break;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
public Texture? GetTexture(string componentName, WrapMode wrapModeS, WrapMode wrapModeT)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public ISample? GetSample(ISampleInfo sampleInfo)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public IBindable<TValue>? GetConfig<TLookup, TValue>(TLookup lookup) where TLookup : notnull where TValue : notnull
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|