Add NRT annotations to `DrawableManiaRuleset`

This commit is contained in:
Bartłomiej Dach 2024-02-05 14:52:08 +01:00
parent e00e583bb4
commit 8b9c9f4fed
No known key found for this signature in database
1 changed files with 4 additions and 6 deletions

View File

@ -1,8 +1,6 @@
// 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.
#nullable disable
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
@ -61,9 +59,9 @@ public partial class DrawableManiaRuleset : DrawableScrollingRuleset<ManiaHitObj
// Stores the current speed adjustment active in gameplay.
private readonly Track speedAdjustmentTrack = new TrackVirtual(0);
private ISkinSource currentSkin;
private ISkinSource currentSkin = null!;
public DrawableManiaRuleset(Ruleset ruleset, IBeatmap beatmap, IReadOnlyList<Mod> mods = null)
public DrawableManiaRuleset(Ruleset ruleset, IBeatmap beatmap, IReadOnlyList<Mod>? mods = null)
: base(ruleset, beatmap, mods)
{
BarLines = new BarLineGenerator<BarLine>(Beatmap).BarLines;
@ -114,7 +112,7 @@ protected override void Update()
updateTimeRange();
}
private ScheduledDelegate pendingSkinChange;
private ScheduledDelegate? pendingSkinChange;
private float hitPosition;
private void onSkinChange()
@ -160,7 +158,7 @@ private void updateTimeRange()
protected override PassThroughInputManager CreateInputManager() => new ManiaInputManager(Ruleset.RulesetInfo, Variant);
public override DrawableHitObject<ManiaHitObject> CreateDrawableRepresentation(ManiaHitObject h) => null;
public override DrawableHitObject<ManiaHitObject>? CreateDrawableRepresentation(ManiaHitObject h) => null;
protected override ReplayInputHandler CreateReplayInputHandler(Replay replay) => new ManiaFramedReplayInputHandler(replay);