1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 12:10:12 +08:00

Mark the top ruleset creation method as can-be-null

This commit is contained in:
Salman Ahmed
2020-04-23 13:24:18 +03:00
Unverified
parent 7f791dcdf0
commit 0a0ea39431
+2
View File
@@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
@@ -145,6 +146,7 @@ namespace osu.Game.Tests.Visual
/// <remarks>
/// When testing against ruleset-specific components, this method must be overriden to their ruleset.
/// </remarks>
[CanBeNull]
protected virtual Ruleset CreateRuleset() => null;
protected virtual IBeatmap CreateBeatmap(RulesetInfo ruleset) => new TestBeatmap(ruleset);