Beispiel #1
0
 public static void CheckCollapseFlyingRoofs(List <IntVec3> nearCells, Map map, bool removalMode = false, bool canRemoveThickRoof = false)
 {
     RoofCollapseCellsFinder.visitedCells.Clear();
     for (int i = 0; i < nearCells.Count; i++)
     {
         RoofCollapseCellsFinder.CheckCollapseFlyingRoofAtAndAdjInternal(nearCells[i], map, removalMode, canRemoveThickRoof);
     }
     RoofCollapseCellsFinder.visitedCells.Clear();
 }
Beispiel #2
0
 public static void CheckCollapseFlyingRoofs(CellRect nearRect, Map map, bool removalMode = false, bool canRemoveThickRoof = false)
 {
     RoofCollapseCellsFinder.visitedCells.Clear();
     CellRect.CellRectIterator iterator = nearRect.GetIterator();
     while (!iterator.Done())
     {
         RoofCollapseCellsFinder.CheckCollapseFlyingRoofAtAndAdjInternal(iterator.Current, map, removalMode, canRemoveThickRoof);
         iterator.MoveNext();
     }
     RoofCollapseCellsFinder.visitedCells.Clear();
 }
 public static void CheckCollapseFlyingRoofs(CellRect nearRect, Map map)
 {
     RoofCollapseCellsFinder.visitedCells.Clear();
     CellRect.CellRectIterator iterator = nearRect.GetIterator();
     while (!iterator.Done())
     {
         RoofCollapseCellsFinder.CheckCollapseFlyingRoofAtAndAdjInternal(iterator.Current, map, false);
         iterator.MoveNext();
     }
     RoofCollapseCellsFinder.visitedCells.Clear();
 }