mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Fix comment formatting
This commit is contained in:
@ -23,13 +23,12 @@ namespace osu.Game.Rulesets
|
|||||||
public virtual IEnumerable<BeatmapStatistic> GetBeatmapStatistics(WorkingBeatmap beatmap) => new BeatmapStatistic[] { };
|
public virtual IEnumerable<BeatmapStatistic> GetBeatmapStatistics(WorkingBeatmap beatmap) => new BeatmapStatistic[] { };
|
||||||
|
|
||||||
public IEnumerable<Mod> GetAllMods() => Enum.GetValues(typeof(ModType)).Cast<ModType>()
|
public IEnumerable<Mod> GetAllMods() => Enum.GetValues(typeof(ModType)).Cast<ModType>()
|
||||||
// Get all mod types as an IEnumerable<ModType>
|
|
||||||
.SelectMany(GetModsFor)
|
|
||||||
// Confine all mods of each mod type into a single IEnumerable<Mod>
|
// Confine all mods of each mod type into a single IEnumerable<Mod>
|
||||||
.Where(mod => mod != null)
|
.SelectMany(GetModsFor)
|
||||||
// Filter out all null mods
|
// Filter out all null mods
|
||||||
.SelectMany(mod => (mod as MultiMod)?.Mods ?? new[] { mod });
|
.Where(mod => mod != null)
|
||||||
// Resolve MultiMods as their .Mods property
|
// Resolve MultiMods as their .Mods property
|
||||||
|
.SelectMany(mod => (mod as MultiMod)?.Mods ?? new[] { mod });
|
||||||
|
|
||||||
public abstract IEnumerable<Mod> GetModsFor(ModType type);
|
public abstract IEnumerable<Mod> GetModsFor(ModType type);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user