summaryrefslogtreecommitdiff
path: root/application/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application/main.cpp')
-rw-r--r--application/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 128c9c1..eef0ed0 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -6,6 +6,7 @@
#include <game/activities/idle.h>
#include <game/activity.h>
#include <game/gamestate.h>
+#include <game/geoData.h>
#include <game/network/link.h>
#include <game/network/rail.h>
#include <game/objective.h>
@@ -54,10 +55,13 @@ public:
int
run()
{
+ geoData = std::make_shared<GeoData>(GeoData::Limits {{-120, -120}, {120, 120}}, 10.F);
+ geoData->generateRandom();
+
Windows windows;
windows.create<GameMainWindow>(DISPLAY_WIDTH, DISPLAY_HEIGHT, this);
- world.create<Terrain>();
+ world.create<Terrain>(geoData);
{
auto rl = world.create<RailLinks>();