mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Add codeanalysis attribute
This commit is contained in:
parent
12f52316cd
commit
180af3c7f8
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
|
||||
@ -45,7 +46,7 @@ namespace osu.Game.Utils
|
||||
/// <param name="combination">The <see cref="Mod"/> combination to check.</param>
|
||||
/// <param name="invalidMods">Any invalid mods in the set.</param>
|
||||
/// <returns>Whether all <see cref="Mod"/>s in the combination are compatible with each-other.</returns>
|
||||
public static bool CheckCompatibleSet(IEnumerable<Mod> combination, out List<Mod>? invalidMods)
|
||||
public static bool CheckCompatibleSet(IEnumerable<Mod> combination, [NotNullWhen(false)] out List<Mod>? invalidMods)
|
||||
{
|
||||
combination = FlattenMods(combination).ToArray();
|
||||
invalidMods = null;
|
||||
|
Loading…
Reference in New Issue
Block a user