static void Postfix(int index, ref RoofGrid __instance, ref Color __result) { if (BiomesCoreDefOf.BMT_RockRoofStable != null && __instance.RoofAt(index) == BiomesCoreDefOf.BMT_RockRoofStable) { //__result = Color.black; // light grey //__result = new Color(0.75f, 0.75f, 0.75f, 1f); // dark grey __result = new Color(0.25f, 0.25f, 0.25f, 1f); } }
public static bool UnbreachableRoofed(this RoofGrid grid, int x, int z) { return(grid.UnbreachableRoofed(grid.RoofAt(x, z))); }
public static bool UnbreachableRoofed(this RoofGrid grid, IntVec3 c) { return(grid.UnbreachableRoofed(grid.RoofAt(c))); }
public static bool UnbreachableRoofed(this RoofGrid grid, int index) { return(grid.UnbreachableRoofed(grid.RoofAt(index))); }
public static void Prefix(RoofGrid __instance, IntVec3 c, out RoofDef __state) { __state = HarmonyPatcher.TransparentRoofs ? __instance.RoofAt(c) : null; }