Beispiel #1
0
        private void PlayerExitGame(IHanabiPlayer player, RequestExitGame request)
        {
            ExitGameResult result = ExitGameResult.Success;

            if (Players.ContainsKey(player.Nickname))
            {
                player.OnExitGame();
                result = ExitGameResult.Success;
            }

            ResponseExitGame response = new ResponseExitGame(result);

            SendCommand(player, ActionType.ExitGame, response);
        }