protected override Task WatchUserInternal(int userId) { // When newly watching a user, the server sends the playing state immediately. if (PlayingUsers.Contains(userId)) { sendPlayingState(userId); } return(Task.CompletedTask); }
public void EndPlay(int userId) { if (!PlayingUsers.Contains(userId)) { return; } ((ISpectatorClient)this).UserFinishedPlaying(userId, new SpectatorState { BeatmapID = userBeatmapDictionary[userId], RulesetID = 0, }); }