private void OnMapLoaded(Map map) { try { DoLater.OnMapLoaded(map); for (int i = 0; i < childMods.Count; i++) { try { childMods[i].MapLoaded(map); } catch (Exception e) { Logger.ReportException(e, childMods[i].LogIdentifierSafe); } } // show update news dialog UpdateFeatures.TryShowDialog(false); } catch (Exception e) { Logger.ReportException(e); } }
private void OnMapLoaded(Map map) { try { DoLater.OnMapLoaded(map); for (int i = 0; i < childMods.Count; i++) { try { childMods[i].MapLoaded(map); } catch (Exception e) { Logger.ReportException(e, childMods[i].ModIdentifier); } } // show update news dialog if (updateNewsSetting.Value) { UpdateFeatures.TryShowDialog(); } } catch (Exception e) { Logger.ReportException(e); } }
internal void OnTick() { if (initializationInProgress) { return; } try { DoLater.OnTick(); var currentTick = Find.TickManager.TicksGame; for (int i = 0; i < initializedMods.Count; i++) { try { initializedMods[i].Tick(currentTick); } catch (Exception e) { Logger.ReportException(e, initializedMods[i].LogIdentifierSafe, true); } } TickDelayScheduler.Tick(currentTick); DistributedTicker.Tick(currentTick); } catch (Exception e) { Logger.ReportException(e, null, true); } }
internal void OnUpdate() { if (initializationInProgress) { return; } try { if (DoLater != null) { DoLater.OnUpdate(); } for (int i = 0; i < initializedMods.Count; i++) { try { initializedMods[i].Update(); } catch (Exception e) { Logger.ReportException(e, initializedMods[i].LogIdentifierSafe, true); } } } catch (Exception e) { Logger.ReportException(e, null, true); } }
internal void OnGUI() { if (initializationInProgress) { return; } try { if (DoLater != null) { DoLater.OnGUI(); } KeyBindingHandler.OnGUI(); for (int i = 0; i < childMods.Count; i++) { try { childMods[i].OnGUI(); } catch (Exception e) { Logger.ReportException(e, childMods[i].ModIdentifier, true); } } } catch (Exception e) { Logger.ReportException(e, null, true); } }