1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 14:07:25 +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
parent 7f791dcdf0
commit 0a0ea39431
No known key found for this signature in database
GPG Key ID: ED81FD33FD9B58BC

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);