mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
Seal RulesetInfo
and remove virtual
methods
This commit is contained in:
parent
b9923e5396
commit
cb5b6911e6
@ -10,7 +10,7 @@ using osu.Framework.Testing;
|
|||||||
namespace osu.Game.Rulesets
|
namespace osu.Game.Rulesets
|
||||||
{
|
{
|
||||||
[ExcludeFromDynamicCompile]
|
[ExcludeFromDynamicCompile]
|
||||||
public class RulesetInfo : IEquatable<RulesetInfo>, IRulesetInfo
|
public sealed class RulesetInfo : IEquatable<RulesetInfo>, IRulesetInfo
|
||||||
{
|
{
|
||||||
public int? ID { get; set; }
|
public int? ID { get; set; }
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ namespace osu.Game.Rulesets
|
|||||||
public bool Available { get; set; }
|
public bool Available { get; set; }
|
||||||
|
|
||||||
// TODO: this should probably be moved to RulesetStore.
|
// TODO: this should probably be moved to RulesetStore.
|
||||||
public virtual Ruleset CreateInstance()
|
public Ruleset CreateInstance()
|
||||||
{
|
{
|
||||||
if (!Available) return null;
|
if (!Available) return null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user