mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 11:12:54 +08:00
Mark the top ruleset creation method as can-be-null
This commit is contained in:
parent
7f791dcdf0
commit
0a0ea39431
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user