//---------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Объединение данных
 /// </summary>
 /// <param name="road_infrastructure">Дорожная инфраструктура</param>
 //---------------------------------------------------------------------------------------------------------
 public void Union(CRoadInfrastructure road_infrastructure)
 {
     for (Int32 i = 0; i < road_infrastructure.RoadElements.Count; i++)
     {
         RoadElements.Add(road_infrastructure.RoadElements[i]);
     }
 }
示例#2
0
 //---------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Конструктор по умолчанию инициализирует объект класса предустановленными значениями
 /// </summary>
 //---------------------------------------------------------------------------------------------------------
 public CVillage()
     : base()
 {
     //mZones = new CLand(TLandCategory.LandsOfSettlements);
     mSpecialInfrastructure = new CSpecialInfrastructure();
     mRoads      = new CRoadInfrastructure(TRoadPlaceType.Inside);
     mRoads.Name = "Внтрипослековые дороги";
     mHousing    = new CHousingInfrastructure();
     mSocial     = new CSocialInfrastructure();
 }
示例#3
0
 //-------------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Обновление связей
 /// </summary>
 /// <param name="parent">Родительский объект</param>
 //-------------------------------------------------------------------------------------------------------------
 public override void OnUpdateLink(CUrbanPlanningItem parent)
 {
     mRoadInfra = parent as CRoadInfrastructure;
 }