Ejemplo n.º 1
0
 public override void DesignateSingleCell(IntVec3 loc)
 {
     if (CanDesignateCell(loc).Accepted)
     {
         var sameTerrainCells = TerrainFindable.TilesSharingTerrainType(Map, loc, 25, (c => this.CanDesignateCell(c).Accepted));
         DesignateMultiCell(sameTerrainCells);
     }
 }
Ejemplo n.º 2
0
 public override void DesignateSingleCell(IntVec3 loc)
 {
     if (CanDesignateCell(loc).Accepted)
     {
         Zone zone = base.Map.zoneManager.ZoneAt(loc);
         // No limit needed for removal (10000)
         var sameTerrainCells = TerrainFindable.TilesSharingTerrainType(Map, loc, 10000);
         foreach (var cell in sameTerrainCells)
         {
             if (CanDesignateCell(cell).Accepted&& base.Map.zoneManager.ZoneAt(cell) == zone)
             {
                 zone.RemoveCell(cell);
                 this.justDesignated.Add(zone);
             }
         }
     }
 }