summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-05-15 15:37:59 +0200
committerAki <please@ignore.pl>2022-05-15 15:37:59 +0200
commit345bb237a7f682670a6107ae75afd948cc1f6ab6 (patch)
treefd4d2982d33c837bd7c4079e41434bbbf3ec8f8a /main.cpp
parent1b61e9b2b8c3b2218ec5a908a547180a642719e6 (diff)
downloadderelict-345bb237a7f682670a6107ae75afd948cc1f6ab6.zip
derelict-345bb237a7f682670a6107ae75afd948cc1f6ab6.tar.gz
derelict-345bb237a7f682670a6107ae75afd948cc1f6ab6.tar.bz2
Separated Wreck from Killmail
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index d1c9b86..c21aa0d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -3,6 +3,7 @@
#include <raylib.h>
#include "DumpSource.h"
+#include "Reader.h"
#include "View.h"
@@ -12,7 +13,9 @@ main(int argc, char* argv[])
InitWindow(800, 600, "Derelict");
SetWindowState(FLAG_WINDOW_RESIZABLE);
SetTargetFPS(60);
- View view(std::make_unique<DumpSource>("sample.json"));
+ DumpSource source("sample.json");
+ auto grids = Reader::read(source);
+ View view(grids);
while (!WindowShouldClose())
{
view.update(GetFrameTime());