Example #1
0
 /// <summary>
 /// Limpa os dados e encerra.
 /// </summary>
 public static void Close()
 {
     Common_DB.Close();
     WorldNetwork.Shutdown();
     GameNetwork.Shutdown();
     Classe.Clear();
     Configuration.Clear();
     Authentication.Clear();
     ProhibitedNames.Clear();
     FileLog.Close();
 }
Example #2
0
        /// <summary>
        /// Fecha todas as conexões.
        /// </summary>
        public static void Close()
        {
            //Não permite nenhuma conexão (evitar possíveis erros)
            Settings.CantConnectNow = true;
            Settings.Server         = null;

            //Limpa as configurações
            Configuration.Clear();
            Authentication.Clear();
            LoginNetwork.Shutdown();
            WorldNetwork.Shutdown();
            CheckSum.Clear();

            //Fecha o arquivo de logs
            FileLog.CloseFileLog();
            Common_DB.Close();
        }