Delegate IsPlayable to the obsoleted UserPlayable by default

Handles consumers who still haven't updated to use `IsPlayable` yet.
This commit is contained in:
Salman Ahmed 2022-03-20 16:07:08 +03:00
parent add9f3ec91
commit 5f878ed82b

View File

@ -91,7 +91,9 @@ namespace osu.Game.Rulesets.Mods
[JsonIgnore] [JsonIgnore]
public virtual bool HasImplementation => this is IApplicableMod; public virtual bool HasImplementation => this is IApplicableMod;
public virtual bool IsPlayable(ModUsage usage) => true; #pragma warning disable 618
public virtual bool IsPlayable(ModUsage usage) => UserPlayable;
#pragma warning restore 618
[JsonIgnore] [JsonIgnore]
[Obsolete("Override IsPlayable instead.")] // Can be removed 20220918 [Obsolete("Override IsPlayable instead.")] // Can be removed 20220918