/// <summary> /// Harmony Transpiler to add checks to see if extractor buildings should be demolished if they're outside of a district with relevant specialization settings. /// </summary> /// <param name="instructions">Original ILCode</param> /// <returns>Replacement (patched) ILCode</returns> private static IEnumerable <CodeInstruction> Transpiler(IEnumerable <CodeInstruction> instructions) { Debugging.Message("transpiler patching specialized building checks in IndustrialExtractorAI.SimulationStep"); return(CheckSpecTranspiler.Transpiler(instructions)); }
/// <summary> /// Harmony Transpiler to add checks to see if industrial buildings should be demolished if they're outside of a district with relevant specialization settings. /// </summary> /// <param name="instructions">Original ILCode</param> /// <returns>Replacement (patched) ILCode</returns> public static IEnumerable <CodeInstruction> Transpiler(IEnumerable <CodeInstruction> instructions) { Logging.Message("transpiler patching specialized building checks in IndustrialBuildingAI.SimulationStep"); return(CheckSpecTranspiler.Transpiler(instructions)); }