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:
parent
e28584da89
commit
deb39bd330
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user