Skip to content

Commit

Permalink
Ban legacy skins from trying to work
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Oct 1, 2022
1 parent 9afba55 commit 9d77592
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions osu.Game.Rulesets.Sentakki/SentakkiRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
using osu.Game.Rulesets.Sentakki.Objects;
using osu.Game.Rulesets.Sentakki.Replays;
using osu.Game.Rulesets.Sentakki.Scoring;
using osu.Game.Rulesets.Sentakki.Skinning.Legacy;
using osu.Game.Rulesets.Sentakki.Statistics;
using osu.Game.Rulesets.Sentakki.UI;
using osu.Game.Rulesets.UI;
using osu.Game.Scoring;
using osu.Game.Screens.Ranking.Statistics;
using osu.Game.Skinning;
using osuTK;
using osuTK.Graphics;

Expand Down Expand Up @@ -71,6 +73,17 @@ public override DifficultyCalculator CreateDifficultyCalculator(IWorkingBeatmap

public override PerformanceCalculator CreatePerformanceCalculator() => new SentakkiPerformanceCalculator(this);

public override ISkin? CreateSkinTransformer(ISkin skin, IBeatmap beatmap)
{
switch (skin)
{
case LegacySkin:
return new SentakkiLegacySkinTransformer(skin);
}

return base.CreateSkinTransformer(skin, beatmap);
}

public override IEnumerable<Mod> GetModsFor(ModType type)
{
switch (type)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using osu.Framework.Graphics;
using osu.Game.Skinning;

namespace osu.Game.Rulesets.Sentakki.Skinning.Legacy
{
public class SentakkiLegacySkinTransformer : LegacySkinTransformer
{
public SentakkiLegacySkinTransformer(ISkin skin)
: base(skin)
{
}

public override Drawable? GetDrawableComponent(ISkinComponent component) => null;
}
}

0 comments on commit 9d77592

Please sign in to comment.