X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=424404febe492414d4584d9291037e70717837e9;hb=af9e0b57dac45dc5591f16fb34236b1356cda8a2;hp=3dc37d83327f89d558784f150833ce1d8c7b9e34;hpb=00dafa489224450ccc0321e238c176b9e8aa34bc;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index 3dc37d8..424404f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,6 +25,8 @@ #include "graphics/Menu.h" #include "graphics/SimpleAnimation.h" #include "graphics/Sprite.h" +#include "loader/ParsedSource.h" +#include "loader/Parser.h" #include "sdl/InitImage.h" #include "sdl/InitScreen.h" #include "sdl/InitSDL.h" @@ -32,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -55,6 +58,8 @@ using graphics::Gauge; using graphics::Menu; using graphics::SimpleAnimation; using graphics::Sprite; +using loader::ParsedSource; +using loader::Parser; using sdl::InitImage; using sdl::InitScreen; using sdl::InitSDL; @@ -73,6 +78,15 @@ int main(int argc, char **argv) { // std::srand(std::time(0)); try { + std::ifstream file("test-data/test.l2s"); + ParsedSource source; + Parser parser(file, source); + parser.Parse(); + + cout << source; + + return 0; + InitSDL sdl; InitImage image(IMG_INIT_PNG); InitScreen screen(width, height);