mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Mark the top ruleset creation method as can-be-null
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user