コード例 #1
0
ファイル: OpenDream.cs プロジェクト: ike709/OpenDream
        public void DisconnectFromServer()
        {
            if (!Connection.Connected)
            {
                return;
            }

            _updateTimer.Stop();
            SoundEngine.StopAllChannels();
            Connection.Close();

            Interface       = null;
            SoundEngine     = null;
            ResourceManager = null;
            StateManager    = null;

            Map             = null;
            ATOMs           = null;
            ScreenObjects   = null;
            IconAppearances = null;

            MainWindow.Show();
        }