public void MapInterfaceUpdate() { if (Find.CurrentMap != null) { if (!WorldRendererUtility.WorldRenderedNow) { Profiler.BeginSample("TargeterUpdate()"); this.targeter.TargeterUpdate(); Profiler.EndSample(); Profiler.BeginSample("DrawSelectionOverlays()"); SelectionDrawer.DrawSelectionOverlays(); Profiler.EndSample(); Profiler.BeginSample("EnvironmentStatsDrawer.DrawRoomOverlays()"); EnvironmentStatsDrawer.DrawRoomOverlays(); Profiler.EndSample(); Profiler.BeginSample("DesignatorManagerUpdate()"); this.designatorManager.DesignatorManagerUpdate(); Profiler.EndSample(); Profiler.BeginSample("RoofGridUpdate()"); Find.CurrentMap.roofGrid.RoofGridUpdate(); Profiler.EndSample(); Profiler.BeginSample("ExitMapGridUpdate()"); Find.CurrentMap.exitMapGrid.ExitMapGridUpdate(); Profiler.EndSample(); Profiler.BeginSample("DeepResourceGridUpdate()"); Find.CurrentMap.deepResourceGrid.DeepResourceGridUpdate(); Profiler.EndSample(); Profiler.BeginSample("Debug drawing"); if (DebugViewSettings.drawPawnDebug) { Find.CurrentMap.pawnDestinationReservationManager.DebugDrawDestinations(); Find.CurrentMap.reservationManager.DebugDrawReservations(); } if (DebugViewSettings.drawFoodSearchFromMouse) { FoodUtility.DebugFoodSearchFromMouse_Update(); } if (DebugViewSettings.drawPreyInfo) { FoodUtility.DebugDrawPredatorFoodSource(); } if (DebugViewSettings.drawAttackTargetScores) { AttackTargetFinder.DebugDrawAttackTargetScores_Update(); } MiscDebugDrawer.DebugDrawInteractionCells(); Find.CurrentMap.debugDrawer.DebugDrawerUpdate(); Find.CurrentMap.regionGrid.DebugDraw(); InfestationCellFinder.DebugDraw(); StealAIDebugDrawer.DebugDraw(); if (DebugViewSettings.drawRiverDebug) { Find.CurrentMap.waterInfo.DebugDrawRiver(); } Profiler.EndSample(); } } }
public void MapInterfaceUpdate() { if (Find.CurrentMap != null && !WorldRendererUtility.WorldRenderedNow) { targeter.TargeterUpdate(); SelectionDrawer.DrawSelectionOverlays(); EnvironmentStatsDrawer.DrawRoomOverlays(); designatorManager.DesignatorManagerUpdate(); Find.CurrentMap.roofGrid.RoofGridUpdate(); Find.CurrentMap.fertilityGrid.FertilityGridUpdate(); Find.CurrentMap.terrainGrid.TerrainGridUpdate(); Find.CurrentMap.exitMapGrid.ExitMapGridUpdate(); Find.CurrentMap.deepResourceGrid.DeepResourceGridUpdate(); if (DebugViewSettings.drawPawnDebug) { Find.CurrentMap.pawnDestinationReservationManager.DebugDrawDestinations(); Find.CurrentMap.reservationManager.DebugDrawReservations(); } if (DebugViewSettings.drawDestReservations) { Find.CurrentMap.pawnDestinationReservationManager.DebugDrawReservations(); } if (DebugViewSettings.drawFoodSearchFromMouse) { FoodUtility.DebugFoodSearchFromMouse_Update(); } if (DebugViewSettings.drawPreyInfo) { FoodUtility.DebugDrawPredatorFoodSource(); } if (DebugViewSettings.drawAttackTargetScores) { AttackTargetFinder.DebugDrawAttackTargetScores_Update(); } MiscDebugDrawer.DebugDrawInteractionCells(); Find.CurrentMap.debugDrawer.DebugDrawerUpdate(); Find.CurrentMap.regionGrid.DebugDraw(); InfestationCellFinder.DebugDraw(); StealAIDebugDrawer.DebugDraw(); if (DebugViewSettings.drawRiverDebug) { Find.CurrentMap.waterInfo.DebugDrawRiver(); } BuildingsDamageSectionLayerUtility.DebugDraw(); } }