Merge branch 'master' into beatsnap-grid-integration

This commit is contained in:
Dean Herbert
2019-10-21 18:44:34 +09:00
committed by GitHub
15 changed files with 67 additions and 60 deletions

View File

@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.TypeExtensions;
@ -90,9 +91,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
public IBindable<ArmedState> State => state;
protected DrawableHitObject(HitObject hitObject)
protected DrawableHitObject([NotNull] HitObject hitObject)
{
HitObject = hitObject;
HitObject = hitObject ?? throw new ArgumentNullException(nameof(hitObject));
}
[BackgroundDependencyLoader]