Exemplo n.º 1
0
        public static void ExitPlayer(IConnection connection)
        {
            AccountService.AbortExitAction(connection);
            FeedbackService.ShowExitWindow(connection, LogoutTimeout);

            connection.Account.ExitAction = new DelayedAction(() =>
            {
                FeedbackService.Exit(connection);
                PlayerLogic.PlayerEndGame(connection.Player);
            }, LogoutTimeout * 1000);
        }