Add TODO comment

This commit is contained in:
ekrctb 2021-04-12 18:50:54 +09:00
parent 359fae895f
commit 31d3607105
1 changed files with 3 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public TFrame CurrentFrame
/// <summary>
/// The next frame of the replay.
/// The start time is always greater or equals to the start time of <see cref="CurrentFrame"/> regardless of the seeking direction.
/// The start time is always greater or equal to the start time of <see cref="CurrentFrame"/> regardless of the seeking direction.
/// If it is before the first frame of the replay or the after the last frame of the replay, <see cref="CurrentFrame"/> and <see cref="NextFrame"/> agree.
/// </summary>
/// <exception cref="InvalidOperationException">The replay is empty.</exception>
@ -83,7 +83,8 @@ public TFrame NextFrame
protected FramedReplayInputHandler(Replay replay)
{
// This replay frame ordering should be enforced on the Replay type
// TODO: This replay frame ordering should be enforced on the Replay type.
// Currently, the ordering can be broken if the frames are added after this construction.
replay.Frames.Sort((x, y) => x.Time.CompareTo(y.Time));
this.replay = replay;