예제 #1
0
        private static List <Message> HandleStartGameMessage(Message message)
        {
            var result = new List <Message>();

            var startGameMessage = message as StartGameMessage;
            var game             = GameManager.RecieveGame(startGameMessage.GameId);

            GameManager.CloseGame(startGameMessage.GameId);
            game.Start();

            SendUpdatedGamesList(result);
            SendHandInfo(game, result);

            return(result);
        }