WebSocketServer.CardServer.BeginNewRound C# (CSharp) Method

BeginNewRound() public method

Begins a new round.
public BeginNewRound ( string title ) : bool
title string The title of the new round.
return bool
        public bool BeginNewRound(string title)
        {
            if (ActiveRound != null)
            {
                return false;
            }

            Round r = new Round(title);
            r.OnCardsFlipped += AutoSortOnFlip;
            Rounds.Add(r);

            BroadcastGameState();
            return true;
        }