void Roads::Impl::updateRoadsAround( Propagator& propagator, UpdateInfo info ) { propagator.init( info.first ); PathwayList pathWayList = propagator.getWays( info.second ); for( auto& path : pathWayList ) { RoadList roads = path->allTiles().overlays<Road>(); for( auto road : roads ) road->appendPaved( paved.increase ); } }
void Roads::Impl::updateRoadsAround( Propagator& propagator, UpdateInfo info ) { propagator.init( info.first ); PathwayList pathWayList = propagator.getWays( info.second ); for( auto&& path : pathWayList ) { const TilesArray& tiles = path->allTiles(); for( auto tile : tiles ) { RoadPtr road = tile->overlay().as<Road>(); if( road.isValid() ) { road->appendPaved( defaultIncreasePaved ); } } } }