-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1966 from andy840119/made-some-cleanup
Made some cleanup
- Loading branch information
Showing
3 changed files
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using osu.Framework.Allocation; | ||
|
@@ -51,7 +49,7 @@ namespace osu.Game.Rulesets.Karaoke | |
[ExcludeFromDynamicCompile] | ||
public partial class KaraokeRuleset : Ruleset | ||
{ | ||
public override DrawableRuleset CreateDrawableRulesetWith(IBeatmap beatmap, IReadOnlyList<Mod> mods = null) => new DrawableKaraokeRuleset(this, beatmap, mods); | ||
public override DrawableRuleset CreateDrawableRulesetWith(IBeatmap beatmap, IReadOnlyList<Mod>? mods = null) => new DrawableKaraokeRuleset(this, beatmap, mods); | ||
public override ScoreProcessor CreateScoreProcessor() => new KaraokeScoreProcessor(); | ||
public override IBeatmapConverter CreateBeatmapConverter(IBeatmap beatmap) => new KaraokeBeatmapConverter(beatmap, this); | ||
public override IBeatmapProcessor CreateBeatmapProcessor(IBeatmap beatmap) => new KaraokeBeatmapProcessor(beatmap); | ||
|
@@ -208,13 +206,13 @@ public override ISkin CreateSkinTransformer(ISkin skin, IBeatmap beatmap) | |
ArgonSkin => new KaraokeArgonSkinTransformer(skin, beatmap), | ||
DefaultLegacySkin => new KaraokeClassicSkinTransformer(skin, beatmap), | ||
LegacySkin => new KaraokeLegacySkinTransformer(skin, beatmap), | ||
_ => null | ||
_ => throw new InvalidOperationException(), | ||
}; | ||
} | ||
|
||
public override IConvertibleReplayFrame CreateConvertibleReplayFrame() => new KaraokeReplayFrame(); | ||
|
||
public override IRulesetConfigManager CreateConfig(SettingsStore settings) => new KaraokeRulesetConfigManager(settings, RulesetInfo); | ||
public override IRulesetConfigManager CreateConfig(SettingsStore? settings) => new KaraokeRulesetConfigManager(settings, RulesetInfo); | ||
|
||
public override RulesetSettingsSubsection CreateSettings() => new KaraokeSettingsSubsection(this); | ||
|
||
|