mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 10:47:22 +09:00
Remove the nullable disable annotation in the Rulesets.Replays namespace in the osu.game project.
This commit is contained in:
parent
fa5f7c1a00
commit
ea573f314e
@ -1,11 +1,8 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using JetBrains.Annotations;
|
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Replays;
|
using osu.Game.Replays;
|
||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
@ -34,7 +31,7 @@ namespace osu.Game.Rulesets.Replays
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract Replay Generate();
|
public abstract Replay Generate();
|
||||||
|
|
||||||
protected virtual HitObject GetNextObject(int currentIndex)
|
protected virtual HitObject? GetNextObject(int currentIndex)
|
||||||
{
|
{
|
||||||
if (currentIndex >= Beatmap.HitObjects.Count - 1)
|
if (currentIndex >= Beatmap.HitObjects.Count - 1)
|
||||||
return null;
|
return null;
|
||||||
@ -51,8 +48,7 @@ namespace osu.Game.Rulesets.Replays
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected readonly List<TFrame> Frames = new List<TFrame>();
|
protected readonly List<TFrame> Frames = new List<TFrame>();
|
||||||
|
|
||||||
[CanBeNull]
|
protected TFrame? LastFrame => Frames.Count == 0 ? null : Frames[^1];
|
||||||
protected TFrame LastFrame => Frames.Count == 0 ? null : Frames[^1];
|
|
||||||
|
|
||||||
protected AutoGenerator(IBeatmap beatmap)
|
protected AutoGenerator(IBeatmap beatmap)
|
||||||
: base(beatmap)
|
: base(beatmap)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Replays.Legacy;
|
using osu.Game.Replays.Legacy;
|
||||||
|
|
||||||
@ -19,7 +17,7 @@ namespace osu.Game.Rulesets.Replays.Types
|
|||||||
/// <param name="currentFrame">The <see cref="LegacyReplayFrame"/> to extract values from.</param>
|
/// <param name="currentFrame">The <see cref="LegacyReplayFrame"/> to extract values from.</param>
|
||||||
/// <param name="beatmap">The beatmap.</param>
|
/// <param name="beatmap">The beatmap.</param>
|
||||||
/// <param name="lastFrame">The last post-conversion <see cref="ReplayFrame"/>, used to fill in missing delta information. May be null.</param>
|
/// <param name="lastFrame">The last post-conversion <see cref="ReplayFrame"/>, used to fill in missing delta information. May be null.</param>
|
||||||
void FromLegacy(LegacyReplayFrame currentFrame, IBeatmap beatmap, ReplayFrame lastFrame = null);
|
void FromLegacy(LegacyReplayFrame currentFrame, IBeatmap beatmap, ReplayFrame? lastFrame = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Populates this <see cref="ReplayFrame"/> using values from a <see cref="LegacyReplayFrame"/>.
|
/// Populates this <see cref="ReplayFrame"/> using values from a <see cref="LegacyReplayFrame"/>.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user