Mark Catcher.additiveTarget to never be null

And provide empty containers instead.
This commit is contained in:
Salman Ahmed
2020-04-22 05:04:07 +03:00
parent c8c2b51108
commit 95de2c6f7f
4 changed files with 7 additions and 4 deletions

View File

@ -3,6 +3,7 @@
using System;
using System.Linq;
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Animations;
@ -116,7 +117,7 @@ namespace osu.Game.Rulesets.Catch.UI
private int hyperDashDirection;
private float hyperDashTargetPosition;
public Catcher(BeatmapDifficulty difficulty = null, Container additiveTarget = null)
public Catcher([NotNull] Container additiveTarget, BeatmapDifficulty difficulty = null)
{
this.additiveTarget = additiveTarget;