diff options
author | Aki <please@ignore.pl> | 2022-05-15 15:37:59 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-05-15 15:37:59 +0200 |
commit | 345bb237a7f682670a6107ae75afd948cc1f6ab6 (patch) | |
tree | fd4d2982d33c837bd7c4079e41434bbbf3ec8f8a /main.cpp | |
parent | 1b61e9b2b8c3b2218ec5a908a547180a642719e6 (diff) | |
download | derelict-345bb237a7f682670a6107ae75afd948cc1f6ab6.zip derelict-345bb237a7f682670a6107ae75afd948cc1f6ab6.tar.gz derelict-345bb237a7f682670a6107ae75afd948cc1f6ab6.tar.bz2 |
Separated Wreck from Killmail
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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()); |