ACR_Candlekeep.ACR_Candlekeep.ShowLoadingProgressDebugString C# (CSharp) Метод

ShowLoadingProgressDebugString() приватный Метод

Periodically poll the loading status string and output it to the debug console while loading is still in progress.
private ShowLoadingProgressDebugString ( ) : void
Результат void
        private void ShowLoadingProgressDebugString()
        {
            //
            // Obtain the current debug string if present (and reset it to the
            // empty string if it was set).  If a debug string snippet was
            // obtained, display it to the debug console.
            //

#pragma warning disable 420
            string DebugString = Interlocked.Exchange(ref Archivist.debug, "");
#pragma warning restore 420

            if (!String.IsNullOrEmpty(DebugString))
                WriteTimestampedLogEntry("ACR_Candlekeep: " + DebugString);

            if (ArchivesInstance.WaitForResourcesLoaded(false) == false)
                DelayCommand(1.0f, delegate() { ShowLoadingProgressDebugString(); });
            else
                WriteTimestampedLogEntry("ACR_Candlekeep: Resource loading complete.");
        }