1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Remove legacy RulesetID property from BeatmapInfo

This commit is contained in:
Dean Herbert 2022-02-16 16:46:53 +09:00
parent a1b39a96cf
commit 3d3f0a89c2

View File

@ -152,18 +152,6 @@ namespace osu.Game.Beatmaps
#region Compatibility properties
[Ignored]
public int RulesetID
{
set
{
if (!string.IsNullOrEmpty(Ruleset.InstantiationInfo))
throw new InvalidOperationException($"Cannot set a {nameof(RulesetID)} when {nameof(Ruleset)} is already set to an actual ruleset.");
Ruleset.OnlineID = value;
}
}
[Ignored]
[Obsolete("Use BeatmapInfo.Difficulty instead.")] // can be removed 20220719
public BeatmapDifficulty BaseDifficulty