Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 public static bool UnbreachableRoofed(this RoofGrid grid, int x, int z)
 {
     return(grid.UnbreachableRoofed(grid.RoofAt(x, z)));
 }
Ejemplo n.º 3
0
 public static bool UnbreachableRoofed(this RoofGrid grid, IntVec3 c)
 {
     return(grid.UnbreachableRoofed(grid.RoofAt(c)));
 }
Ejemplo n.º 4
0
 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;
 }