From 83716ddb089a2e9ac43026aa6440998ccbc0e6ad Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Mon, 19 Apr 2021 16:07:00 +0900 Subject: [PATCH] Rename currentUserStates -> playingUserStates --- osu.Game/Online/Spectator/SpectatorStreamingClient.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Game/Online/Spectator/SpectatorStreamingClient.cs b/osu.Game/Online/Spectator/SpectatorStreamingClient.cs index 10a707a4ce..9def009469 100644 --- a/osu.Game/Online/Spectator/SpectatorStreamingClient.cs +++ b/osu.Game/Online/Spectator/SpectatorStreamingClient.cs @@ -47,7 +47,7 @@ public class SpectatorStreamingClient : Component, ISpectatorClient private readonly BindableList playingUsers = new BindableList(); - private readonly Dictionary currentUserStates = new Dictionary(); + private readonly Dictionary playingUserStates = new Dictionary(); [CanBeNull] private IBeatmap currentBeatmap; @@ -128,7 +128,7 @@ private void load(IAPIProvider api) lock (userLock) { playingUsers.Clear(); - currentUserStates.Clear(); + playingUserStates.Clear(); } } }, true); @@ -142,7 +142,7 @@ Task ISpectatorClient.UserBeganPlaying(int userId, SpectatorState state) if (!playingUsers.Contains(userId)) playingUsers.Add(userId); - currentUserStates[userId] = state; + playingUserStates[userId] = state; } OnUserBeganPlaying?.Invoke(userId, state); @@ -155,7 +155,7 @@ Task ISpectatorClient.UserFinishedPlaying(int userId, SpectatorState state) lock (userLock) { playingUsers.Remove(userId); - currentUserStates.Remove(userId); + playingUserStates.Remove(userId); } OnUserFinishedPlaying?.Invoke(userId, state); @@ -298,7 +298,7 @@ public void BindUserBeganPlaying(Action callback, bool runO lock (userLock) { - foreach (var (userId, state) in currentUserStates) + foreach (var (userId, state) in playingUserStates) callback(userId, state); } }