diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/main.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/application/main.cpp b/application/main.cpp index e4e71c7..5db2539 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -37,8 +37,7 @@ public: int run() { - geoData = std::make_shared<GeoData>(GeoData::Limits {{-120, -120}, {120, 120}}, 10000.F); - geoData->generateRandom(); + geoData = std::make_shared<GeoData>(GeoData::loadFromAsciiGrid("test/fixtures/height/SD19.asc")); Windows windows; windows.create<GameMainWindow>(DISPLAY_WIDTH, DISPLAY_HEIGHT); @@ -79,12 +78,12 @@ public: &train->orders, l3->ends[1], l3->length, rl->findNodeAt({-1100000, -450000, 15000})); train->currentActivity = train->orders.current()->createActivity(); - auto foliage = std::dynamic_pointer_cast<Foliage>(assets.at("Tree-01-1")); - for (float x = 900000; x < 1100000; x += 5000) { - for (float y = 900000; y < 1100000; y += 5000) { - world.create<Plant>(foliage, Location {geoData->positionAt({-x, -y})}); - } - } + // auto foliage = std::dynamic_pointer_cast<Foliage>(assets.at("Tree-01-1")); + // for (float x = 900000; x < 1100000; x += 5000) { + // for (float y = 900000; y < 1100000; y += 5000) { + // world.create<Plant>(foliage, Location {geoData->positionAt({{-x, -y}})}); + //} + //} } auto t_start = std::chrono::high_resolution_clock::now(); |