Exemplo n.º 1
0
        private void refreshMapset()
        {
            var previousBeatmapId   = mainBeatmap?.Id ?? -1;
            var previousBeatmapName = mainBeatmap?.Name;

            mainBeatmap = null;
            mapsetManager?.Dispose();

            mapsetManager = new MapsetManager(mapsetPath, mapsetManager != null);
            mapsetManager.OnFileChanged += mapsetManager_OnFileChanged;

            if (previousBeatmapName != null)
            {
                SelectBeatmap(previousBeatmapId, previousBeatmapName);
            }
        }
Exemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // Always dispose this first to ensure updates aren't happening while the project is being disposed
                    effectUpdateQueue.Dispose();

                    mapsetManager?.Dispose();
                    scriptManager.Dispose();
                    textureContainer.Dispose();
                    audioContainer.Dispose();
                }
                mapsetManager     = null;
                effectUpdateQueue = null;
                scriptManager     = null;
                textureContainer  = null;
                audioContainer    = null;
                disposedValue     = true;
            }
        }
Exemplo n.º 3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!IsDisposed)
            {
                if (disposing)
                {
                    // Always dispose this first to ensure updates aren't happening while the project is being disposed
                    effectUpdateQueue.Dispose();

                    assetWatcher.Dispose();
                    MapsetManager?.Dispose();
                    scriptManager.Dispose();
                    TextureContainer.Dispose();
                    AudioContainer.Dispose();
                }
                assetWatcher      = null;
                MapsetManager     = null;
                effectUpdateQueue = null;
                scriptManager     = null;
                TextureContainer  = null;
                AudioContainer    = null;
                IsDisposed        = true;
            }
        }