diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-10-27 13:04:44 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-11-10 18:58:19 +0300 |
commit | 44d7d2efa2c57566ffd70a8431c7d09403b19b02 (patch) | |
tree | 2497322750a6c2c5f9c0fba4170e7ee43119682c /generator/world_map_generator.hpp | |
parent | b416d8430631b9b8f7a8d50867ddbcb9b4a37ddf (diff) |
Using RestrictionCollector on 2nd generation step to generate restrictions in feature id terms.
Diffstat (limited to 'generator/world_map_generator.hpp')
-rw-r--r-- | generator/world_map_generator.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generator/world_map_generator.hpp b/generator/world_map_generator.hpp index ad26cc5bb4..c6473e467e 100644 --- a/generator/world_map_generator.hpp +++ b/generator/world_map_generator.hpp @@ -13,6 +13,8 @@ #include "defines.hpp" +class RestrictionCollector; + namespace { class WaterBoundaryChecker @@ -314,10 +316,10 @@ class CountryMapGenerator public: explicit CountryMapGenerator(feature::GenerateInfo const & info) : m_bucket(info) {} - void operator()(FeatureBuilder1 fb) + void operator()(FeatureBuilder1 fb, RestrictionCollector & restrictions) { if (feature::PreprocessForCountryMap(fb)) - m_bucket(fb); + m_bucket(fb, restrictions); } inline FeatureOutT & Parent() { return m_bucket; } |