From cb5b6911e6d3263e01f11f49258214cf256f705b Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 22 Nov 2021 16:39:26 +0900 Subject: [PATCH] Seal `RulesetInfo` and remove `virtual` methods --- osu.Game/Rulesets/RulesetInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Rulesets/RulesetInfo.cs b/osu.Game/Rulesets/RulesetInfo.cs index 8083041a3b..ccb614fe91 100644 --- a/osu.Game/Rulesets/RulesetInfo.cs +++ b/osu.Game/Rulesets/RulesetInfo.cs @@ -10,7 +10,7 @@ using osu.Framework.Testing; namespace osu.Game.Rulesets { [ExcludeFromDynamicCompile] - public class RulesetInfo : IEquatable, IRulesetInfo + public sealed class RulesetInfo : IEquatable, IRulesetInfo { public int? ID { get; set; } @@ -24,7 +24,7 @@ namespace osu.Game.Rulesets public bool Available { get; set; } // TODO: this should probably be moved to RulesetStore. - public virtual Ruleset CreateInstance() + public Ruleset CreateInstance() { if (!Available) return null;