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