コード例 #1
0
 public static PlacementData GetData(Zone zone, Map map, int labelLength)
 {
     return(EdgeFinder.GetBestPlacementData(
                zone.Cells,
                c => c.Fogged(map),
                c => true,
                c => true,
                labelLength
                ));
 }
コード例 #2
0
 public PlacementData GetData(Room room, int labelLength)
 {
     return(EdgeFinder.GetBestPlacementData(
                room.Cells.ToList(),
                c => false,
                c => !_map.thingGrid.CellContains(c, ThingDefOf.Wall),
                IsCellVisible,
                labelLength
                ));
 }