mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
Remove unnecessary nullability of storyboard mods list
This commit is contained in:
parent
2ce4faa356
commit
3630ab2db2
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// 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.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
@ -64,7 +63,7 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
public DrawableStoryboard(Storyboard storyboard, IReadOnlyList<Mod> mods)
|
public DrawableStoryboard(Storyboard storyboard, IReadOnlyList<Mod> mods)
|
||||||
{
|
{
|
||||||
Storyboard = storyboard;
|
Storyboard = storyboard;
|
||||||
Mods = mods ?? Array.Empty<Mod>();
|
Mods = mods;
|
||||||
|
|
||||||
Size = new Vector2(640, 480);
|
Size = new Vector2(640, 480);
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ namespace osu.Game.Storyboards
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public DrawableStoryboard CreateDrawable(IReadOnlyList<Mod> mods = null) =>
|
public DrawableStoryboard CreateDrawable(IReadOnlyList<Mod> mods) =>
|
||||||
new DrawableStoryboard(this, mods);
|
new DrawableStoryboard(this, mods);
|
||||||
|
|
||||||
public Drawable CreateSpriteFromResourcePath(string path, TextureStore textureStore)
|
public Drawable CreateSpriteFromResourcePath(string path, TextureStore textureStore)
|
||||||
|
Loading…
Reference in New Issue
Block a user