protected void UpdateLoadingPhase(LoadingPhase phase) { if (phase != LoadingPhase.Loaded) { LoadingProgress.enumerator = DefDatabase <ThingDef> .AllDefs.GetEnumerator(); } LoadingProgress.phase = phase; }
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); }
protected void UpdateLoadingPhase(LoadingPhase phase) { //Log.Message("UpdateLoadingPhase to " + phase.ToString()); if (phase != LoadingPhase.Loaded) { LoadingProgress.enumerator = DefDatabase <ThingDef> .AllDefs.GetEnumerator(); } LoadingProgress.phase = phase; }
protected void SetProgressPhase(ILoadingProgressCallback progressCallback, LoadingPhase loadingPhase) { if (progressCallback == null) { return; } progressCallback.CurrentPhase = loadingPhase; }
public MockLoadingProgressCallbackCancellable(LoadingPhase loadingPhaseToCancel) : base() { _LoadingPhaseToCancel = loadingPhaseToCancel; _IsCancelRequested = false; }