//--------------------------------------------------------------------------------------------------------- /// <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]); } }
//--------------------------------------------------------------------------------------------------------- /// <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(); }
//------------------------------------------------------------------------------------------------------------- /// <summary> /// Обновление связей /// </summary> /// <param name="parent">Родительский объект</param> //------------------------------------------------------------------------------------------------------------- public override void OnUpdateLink(CUrbanPlanningItem parent) { mRoadInfra = parent as CRoadInfrastructure; }