From e3cf51c3f440612fb865a71b29953c97e3ac9629 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Fri, 29 Dec 2023 21:22:30 +0900 Subject: [PATCH] Fix the api change and follow the behavior how other ruleset did. see: https://github.com/ppy/osu/pull/26036/files --- .../Mods/KaraokeModPerfectTestScene.cs | 17 ----------------- .../Mods/TestSceneKaraokeModPerfect.cs | 5 ++++- 2 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 osu.Game.Rulesets.Karaoke.Tests/Mods/KaraokeModPerfectTestScene.cs diff --git a/osu.Game.Rulesets.Karaoke.Tests/Mods/KaraokeModPerfectTestScene.cs b/osu.Game.Rulesets.Karaoke.Tests/Mods/KaraokeModPerfectTestScene.cs deleted file mode 100644 index d54d7572f..000000000 --- a/osu.Game.Rulesets.Karaoke.Tests/Mods/KaraokeModPerfectTestScene.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) andy840119 . Licensed under the GPL Licence. -// See the LICENCE file in the repository root for full licence text. - -using osu.Game.Rulesets.Mods; -using osu.Game.Tests.Visual; - -namespace osu.Game.Rulesets.Karaoke.Tests.Mods; - -public abstract partial class KaraokeModPerfectTestScene : ModPerfectTestScene -{ - protected override Ruleset CreatePlayerRuleset() => new KaraokeRuleset(); - - protected KaraokeModPerfectTestScene(ModPerfect mod) - : base(mod) - { - } -} diff --git a/osu.Game.Rulesets.Karaoke.Tests/Mods/TestSceneKaraokeModPerfect.cs b/osu.Game.Rulesets.Karaoke.Tests/Mods/TestSceneKaraokeModPerfect.cs index 0127f5ec6..06f3ea7c3 100644 --- a/osu.Game.Rulesets.Karaoke.Tests/Mods/TestSceneKaraokeModPerfect.cs +++ b/osu.Game.Rulesets.Karaoke.Tests/Mods/TestSceneKaraokeModPerfect.cs @@ -4,11 +4,14 @@ using NUnit.Framework; using osu.Game.Rulesets.Karaoke.Mods; using osu.Game.Rulesets.Karaoke.Objects; +using osu.Game.Tests.Visual; namespace osu.Game.Rulesets.Karaoke.Tests.Mods; -public partial class TestSceneKaraokeModPerfect : KaraokeModPerfectTestScene +public partial class TestSceneKaraokeModPerfect : ModFailConditionTestScene { + protected override Ruleset CreatePlayerRuleset() => new KaraokeRuleset(); + public TestSceneKaraokeModPerfect() : base(new KaraokeModPerfect()) {