public void Import()
    {
        var mapReader = new BaseOSMLib.MapReader();

        mapReader.Read(_mapFile);

        var buildingMaker = new BaseOSMLib.BuildingMaker(mapReader, _buildingMaterial);
        var roadMaker     = new BaseOSMLib.RoadMaker(mapReader, _roadMaterial);

        Process(buildingMaker, "Importing buildings");
        Process(roadMaker, "Importing roads");
    }
Exemple #2
0
 public BuildingMaker(MapReader mapReader, Material buildingMaterial)
     : base(mapReader)
 {
     building = buildingMaterial;
 }
Exemple #3
0
 /// <summary>
 /// Awaken this instance!!!
 /// </summary>
 public BaseInfrastructureMaker(BaseOSMLib.MapReader mapReader)
 {
     map = mapReader;
 }
 public RoadMaker(MapReader mapReader, Material roadMat)
     : base(mapReader)
 {
     roadMaterial = roadMat;
 }