mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 08:12:53 +08:00
Enforce non-null for BeatmapManager WorkingBeatmap resources
This commit is contained in:
parent
a97a2b2a66
commit
85518b4d99
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Audio.Track;
|
using osu.Framework.Audio.Track;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
@ -19,10 +20,11 @@ namespace osu.Game.Beatmaps
|
|||||||
[ExcludeFromDynamicCompile]
|
[ExcludeFromDynamicCompile]
|
||||||
private class BeatmapManagerWorkingBeatmap : WorkingBeatmap
|
private class BeatmapManagerWorkingBeatmap : WorkingBeatmap
|
||||||
{
|
{
|
||||||
|
[NotNull]
|
||||||
private readonly IBeatmapResourceProvider resources;
|
private readonly IBeatmapResourceProvider resources;
|
||||||
|
|
||||||
public BeatmapManagerWorkingBeatmap(BeatmapInfo beatmapInfo, IBeatmapResourceProvider resources)
|
public BeatmapManagerWorkingBeatmap(BeatmapInfo beatmapInfo, [NotNull] IBeatmapResourceProvider resources)
|
||||||
: base(beatmapInfo, resources?.AudioManager)
|
: base(beatmapInfo, resources.AudioManager)
|
||||||
{
|
{
|
||||||
this.resources = resources;
|
this.resources = resources;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user