X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=2ac04233370a496f7cf469ceb5963a9f33578a25;hb=d04fc494f1a140c20941d0d871f2b6a074068b44;hp=e6e8b0897ca2394f334e9400a9fc18720013bfbc;hpb=760eb1dd86170a14e0b0b5a2331f1225f0b06fdf;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index e6e8b08..2ac0423 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,6 +25,7 @@ #include "graphics/Menu.h" #include "graphics/SimpleAnimation.h" #include "graphics/Sprite.h" +#include "loader/Compiler.h" #include "loader/Interpreter.h" #include "loader/ParsedSource.h" #include "loader/Parser.h" @@ -59,6 +60,7 @@ using graphics::Gauge; using graphics::Menu; using graphics::SimpleAnimation; using graphics::Sprite; +using loader::Compiler; using loader::Interpreter; using loader::ParsedSource; using loader::Parser; @@ -109,6 +111,10 @@ int main(int argc, char **argv) { Interpreter intp(source); intp.ReadSource(); +// std::ofstream testOut("test-data/test.l2o"); +// Compiler(intp).Write(testOut); +// return 0; + int battleResId(TypeDescription::GetTypeId("BattleResources")); int heroId(TypeDescription::GetTypeId("Hero")); int itemId(TypeDescription::GetTypeId("Item"));