2022-09-15 08:51:10 +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.Audio.Sample;
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
using osu.Game.Audio;
|
2022-09-16 10:25:04 +00:00
|
|
|
using osu.Game.Rulesets.Scoring;
|
2022-09-15 08:51:10 +00:00
|
|
|
using osu.Game.Skinning;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Skinning.Argon
|
|
|
|
{
|
|
|
|
public class OsuArgonSkinTransformer : ISkin
|
|
|
|
{
|
|
|
|
public OsuArgonSkinTransformer(ISkin skin)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public Drawable? GetDrawableComponent(ISkinComponent component)
|
|
|
|
{
|
2022-09-16 10:25:04 +00:00
|
|
|
switch (component)
|
2022-09-15 08:51:10 +00:00
|
|
|
{
|
2022-09-16 10:25:04 +00:00
|
|
|
case GameplaySkinComponent<HitResult> resultComponent:
|
|
|
|
return new ArgonJudgementPiece(resultComponent.Component);
|
|
|
|
|
|
|
|
case OsuSkinComponent osuComponent:
|
|
|
|
switch (osuComponent.Component)
|
|
|
|
{
|
|
|
|
case OsuSkinComponents.HitCircle:
|
|
|
|
case OsuSkinComponents.SliderHeadHitCircle:
|
|
|
|
return new ArgonMainCirclePiece();
|
2022-09-19 05:38:21 +00:00
|
|
|
|
|
|
|
case OsuSkinComponents.SliderBody:
|
|
|
|
return new ArgonSliderBody();
|
2022-09-16 10:25:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
2022-09-15 08:51:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|