Ejemplo n.º 1
0
 public void SetMapTileArchitecture(Architecture architecture)
 {
     if (!architecture.AutoRefillFoodInLongViewArea)
     {
         architecture.AddBaseSupplyingArchitecture();
     }
     foreach (Point point in architecture.ViewArea.Area)
     {
         if (!this.PositionOutOfRange(point))
         {
             this.MapTileData[point.X, point.Y].AddHighViewingArchitecture(architecture);
         }
     }
     foreach (Point point in architecture.LongViewArea.Area)
     {
         if (!this.PositionOutOfRange(point))
         {
             this.MapTileData[point.X, point.Y].AddViewingArchitecture(architecture);
         }
     }
 }