예제 #1
0
파일: Manager.cs 프로젝트: Rahil627/Rise
 internal void Cleanup()
 {
     if (cleanup)
     {
         cleanup = false;
         OnCleanup?.Invoke();
     }
 }
예제 #2
0
 public void CleanReferences()
 {
     OnCleanup?.Invoke();
     meshRootGameObjectValue = null;
     currentShape            = null;
     renderers = null;
     colliders.Clear();
 }
        /// <summary>
        ///     Destroy all objects created by this SLUIManager..
        /// </summary>
        public void Cleanup()
        {
            // clear files?
            // _luaFiles.Clear();
            // _workingFiles.Clear();

            Worker?.ClearWorker();
            OnCleanup?.Invoke();
        }
예제 #4
0
        public void Cleanup()
        {
            OnCleanup?.Invoke();

            Sorter.CASC = null;

            _root = null;

            if (_casc != null)
            {
                _casc.Clear();
                _casc = null;
            }
        }
예제 #5
0
        public void Cleanup()
        {
            Sorter.CASC = null;

            _currentFolder = null;
            _root          = null;

            _displayedEntries?.Clear();
            _displayedEntries = null;

            _casc?.Clear();
            _casc = null;

            OnCleanup?.Invoke();
        }
예제 #6
0
        public void ChangeLocale(string locale)
        {
            if (_casc == null)
            {
                return;
            }

            OnCleanup?.Invoke();

            Settings.Default.LocaleFlags = (LocaleFlags)Enum.Parse(typeof(LocaleFlags), locale);

            _root = _casc.Root.SetFlags(Settings.Default.LocaleFlags, Settings.Default.ContentFlags);
            _casc.Root.MergeInstall(_casc.Install);

            OnStorageChanged?.Invoke();
        }
예제 #7
0
        public void SetOverrideArchive(bool set)
        {
            if (_casc == null)
            {
                return;
            }

            OnCleanup?.Invoke();

            Settings.Default.OverrideArchive = set;

            _root = _casc.Root.SetFlags(Settings.Default.LocaleFlags, Settings.Default.OverrideArchive);
            _casc.Root.MergeInstall(_casc.Install);

            OnStorageChanged?.Invoke();
        }
        public override void Cleanup()
        {
            OnCleanup?.Invoke();

            processor?.DisposeGif();

            if (frames is null)
            {
                return;
            }

            for (int i = 0; i < frames.Length; i++)
            {
                Object.Destroy(frames[i].texture);
            }

            frames = null;
        }
예제 #9
0
        public void ChangeContentFlags(bool set)
        {
            if (_casc == null)
            {
                return;
            }

            OnCleanup?.Invoke();

            if (set)
            {
                Settings.Default.ContentFlags |= ContentFlags.LowViolence;
            }
            else
            {
                Settings.Default.ContentFlags &= ~ContentFlags.LowViolence;
            }

            _root = _casc.Root.SetFlags(Settings.Default.LocaleFlags, Settings.Default.ContentFlags);
            _casc.Root.MergeInstall(_casc.Install);

            OnStorageChanged?.Invoke();
        }
예제 #10
0
 public override void Cleanup()
 {
     OnCleanup?.Invoke();
     PersistentAssetCache.RemoveImage(texture);
     Object.Destroy(texture);
 }
        void CeBackupServerManager_OnCleanup(string SrcPath, string DstPath, int Deleted)
        {
            Logger.Info(string.Format("WCFCeBackupService::OnCleanup() {0} - {1} Deleted={2}", SrcPath, DstPath, Deleted));

            OnCleanup?.Invoke(SrcPath, DstPath, Deleted);
        }