public static void Postfix(PowerNetManager __instance)
 {
     if (Find.CurrentMap == __instance.map && (OverlayDrawHandler.ShouldDrawPowerGrid || ActiveCircuitsSettings.displayBadOnMain) && GenTicks.TicksAbs % 149 == 0)
     {
         ActiveCircuitsBase.UpdateAllNets(__instance.map);
     }
 }
示例#2
0
 public static bool Prefix(SectionLayer layer, CompPower __instance)
 {
     ActiveCircuitsBase.DrawPowerGrid(layer, __instance);
     return(false);
 }
示例#3
0
 public static void Postfix()
 {
     ActiveCircuitsBase.UpdateAllNets(Find.CurrentMap);
 }