Пример #1
0
 private static BuildingType AdjustDefaultType(BuildingType type, double far, int levels)
 {
     if (type.HasFlag(BuildingType.Residencial) || type.HasFlag(BuildingType.Office))
     {
         type = type | BuildingType.High | BuildingType.MidHigh;
         if (IsHighBuilding(far, levels))
         {
             type = type ^ BuildingType.MidHigh;
         }
         else
         {
             type = type ^ BuildingType.High;
         }
     }
     return(type);
 }