]> git.localhorst.tv Git - l2e.git/commitdiff
added l2 object files to gitignore
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 13 Sep 2012 21:16:18 +0000 (23:16 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 15 Sep 2012 19:44:25 +0000 (21:44 +0200)
.gitignore
src/main.cpp

index 4ffe1ce4c77ff4f80c5bb72b61fdfcd45396555b..ce128794751dfedac2034ca29b0aa1a8a2147cc4 100644 (file)
@@ -3,6 +3,7 @@
 .settings
 *.o
 *.d
+*.l2o
 Debug/l2e
 Release/l2e
 shots/
index e6e8b0897ca2394f334e9400a9fc18720013bfbc..2ac04233370a496f7cf469ceb5963a9f33578a25 100644 (file)
@@ -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"));