mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Rename dictionary and make private
for added safety
This commit is contained in:
parent
1253e1ecc1
commit
57f793aff0
@ -215,7 +215,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
});
|
||||
|
||||
// We can't access API because we're an "online" test.
|
||||
AddAssert("last received frame has time = 1000", () => spectatorClient.LastReceivedFrame.First().Value.Time == 1000);
|
||||
AddAssert("last received frame has time = 1000", () => spectatorClient.LastReceivedUserFrames.First().Value.Time == 1000);
|
||||
}
|
||||
|
||||
private OsuFramedReplayInputHandler replayHandler =>
|
||||
|
@ -28,7 +28,10 @@ namespace osu.Game.Tests.Visual.Spectator
|
||||
|
||||
public override IBindable<bool> IsConnected { get; } = new Bindable<bool>(true);
|
||||
|
||||
public readonly Dictionary<int, ReplayFrame> LastReceivedFrame = new Dictionary<int, ReplayFrame>();
|
||||
public IReadOnlyDictionary<int, ReplayFrame> LastReceivedUserFrames => lastReceivedUserFrames;
|
||||
|
||||
private readonly Dictionary<int, ReplayFrame> lastReceivedUserFrames = new Dictionary<int, ReplayFrame>();
|
||||
|
||||
private readonly Dictionary<int, int> userBeatmapDictionary = new Dictionary<int, int>();
|
||||
private readonly Dictionary<int, int> userNextFrameDictionary = new Dictionary<int, int>();
|
||||
|
||||
@ -40,7 +43,7 @@ namespace osu.Game.Tests.Visual.Spectator
|
||||
OnNewFrames += (i, bundle) =>
|
||||
{
|
||||
if (PlayingUsers.Contains(i))
|
||||
LastReceivedFrame[i] = bundle.Frames[^1];
|
||||
lastReceivedUserFrames[i] = bundle.Frames[^1];
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user