WindowsDefender_WebApp.ChatHub.UpdateReadyCount C# (CSharp) Method

UpdateReadyCount() public method

Sends the current readylist to everyone in a match.
public UpdateReadyCount ( Match match ) : void
match Match
return void
        public void UpdateReadyCount(Match match)
        {
            int readyCount = 0;
            foreach (User user in match.Users)
                if (user.Ready)
                    readyCount++;
            foreach (User user in match.Users)
                Clients.Client(user.ConnectionId).updateReadyCount(readyCount);
        }