protected void UpdateLoadingPhase(LoadingPhase phase)
 {
     if (phase != LoadingPhase.Loaded)
     {
         LoadingProgress.enumerator = DefDatabase <ThingDef> .AllDefs.GetEnumerator();
     }
     LoadingProgress.phase = phase;
 }
Example #2
0
        private void CancelConversationLoad(LoadingPhase loadingPhaseToCancel)
        {
            DummyContactId[]     dummyContactIds     = { DummyContactId.Davola, DummyContactId.Obama };
            DummyPhoneNumberId[] DummyPhoneNumberIds = { DummyPhoneNumberId.DavolaCell, DummyPhoneNumberId.DavolaiPhone, DummyPhoneNumberId.ObamaCell, DummyPhoneNumberId.UnknownLawnmower };

            MockLoadingProgressCallbackCancellable progressCallback = new MockLoadingProgressCallbackCancellable(loadingPhaseToCancel);
            ConversationManager conversationManager = CreateConversationManager(dummyContactIds, DummyPhoneNumberIds, progressCallback);
        }
Example #3
0
 protected void UpdateLoadingPhase(LoadingPhase phase)
 {
     //Log.Message("UpdateLoadingPhase to " + phase.ToString());
     if (phase != LoadingPhase.Loaded)
     {
         LoadingProgress.enumerator = DefDatabase <ThingDef> .AllDefs.GetEnumerator();
     }
     LoadingProgress.phase = phase;
 }
Example #4
0
        protected void SetProgressPhase(ILoadingProgressCallback progressCallback, LoadingPhase loadingPhase)
        {
            if (progressCallback == null)
            {
                return;
            }

            progressCallback.CurrentPhase = loadingPhase;
        }
 public MockLoadingProgressCallbackCancellable(LoadingPhase loadingPhaseToCancel)
     : base()
 {
     _LoadingPhaseToCancel = loadingPhaseToCancel;
     _IsCancelRequested    = false;
 }
        private void CancelConversationLoad(LoadingPhase loadingPhaseToCancel)
        {
            DummyContactId[] dummyContactIds = { DummyContactId.Davola, DummyContactId.Obama };
            DummyPhoneNumberId[] DummyPhoneNumberIds = { DummyPhoneNumberId.DavolaCell, DummyPhoneNumberId.DavolaiPhone, DummyPhoneNumberId.ObamaCell, DummyPhoneNumberId.UnknownLawnmower };

            MockLoadingProgressCallbackCancellable progressCallback = new MockLoadingProgressCallbackCancellable(loadingPhaseToCancel);
            ConversationManager conversationManager = CreateConversationManager(dummyContactIds, DummyPhoneNumberIds, progressCallback);
        }
 public MockLoadingProgressCallbackCancellable(LoadingPhase loadingPhaseToCancel)
     : base()
 {
     _LoadingPhaseToCancel = loadingPhaseToCancel;
     _IsCancelRequested = false;
 }
        protected void SetProgressPhase(ILoadingProgressCallback progressCallback, LoadingPhase loadingPhase)
        {
            if (progressCallback == null)
            {
                return;
            }

            progressCallback.CurrentPhase = loadingPhase;
        }