Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void EndPlay(int userId)
        {
            if (!PlayingUsers.Contains(userId))
            {
                return;
            }

            ((ISpectatorClient)this).UserFinishedPlaying(userId, new SpectatorState
            {
                BeatmapID = userBeatmapDictionary[userId],
                RulesetID = 0,
            });
        }