1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Mark the property as nullable or non-nullable.

This commit is contained in:
為什麼 2022-07-10 23:49:38 +08:00 committed by andy840119
parent e28584da89
commit deb39bd330
3 changed files with 4 additions and 4 deletions

View File

@ -53,9 +53,9 @@ namespace osu.Game.Rulesets.Osu.Mods
/// <summary>
/// Black background boxes behind blind panel textures.
/// </summary>
private Box blackBoxLeft, blackBoxRight;
private Box blackBoxLeft = null!, blackBoxRight = null!;
private Drawable panelLeft, panelRight, bgPanelLeft, bgPanelRight;
private Drawable panelLeft = null!, panelRight = null!, bgPanelLeft = null!, bgPanelRight = null!;
private readonly Beatmap<OsuHitObject> beatmap;

View File

@ -31,7 +31,7 @@ namespace osu.Game.Rulesets.Osu.Mods
private OsuInputManager osuInputManager;
private ReplayState<OsuAction> state;
private ReplayState<OsuAction>? state;
private double lastStateChangeTime;
private bool hasReplay;

View File

@ -403,7 +403,7 @@ namespace osu.Game.Rulesets.Osu.Mods
/// <param name="hitObjects">The list of hit objects in a beatmap, ordered by StartTime</param>
/// <param name="time">The point in time to get samples for</param>
/// <returns>Hit samples</returns>
private IList<HitSampleInfo> getSamplesAtTime(IEnumerable<OsuHitObject> hitObjects, double time)
private IList<HitSampleInfo>? getSamplesAtTime(IEnumerable<OsuHitObject> hitObjects, double time)
{
// Get a hit object that
// either has StartTime equal to the target time