X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Floader%2FInterpreter.cpp;h=c2ce0d4145abf20ee1b90c291ad7965d2e5446aa;hb=77915e0186f4fc0788054eb34651c726b80d981c;hp=8b9b56a2098eb9ae9a6a4002020f4973fdfa6675;hpb=3a30342daecdb9ee050ab20fcb50819a599d6343;p=l2e.git diff --git a/src/loader/Interpreter.cpp b/src/loader/Interpreter.cpp index 8b9b56a..c2ce0d4 100644 --- a/src/loader/Interpreter.cpp +++ b/src/loader/Interpreter.cpp @@ -14,6 +14,7 @@ #include "../battle/Resources.h" #include "../common/Ikari.h" #include "../common/Item.h" +#include "../common/Script.h" #include "../common/Spell.h" #include "../common/Stats.h" #include "../common/TargetingMode.h" @@ -34,6 +35,7 @@ using battle::Monster; using battle::PartyLayout; using common::Ikari; using common::Item; +using common::Script; using common::Spell; using common::Stats; using common::TargetingMode; @@ -143,7 +145,9 @@ void Interpreter::ReadLiteral(int typeId, int id, char *object, const Literal &l object[literal.GetString().size()] = '\0'; break; case Literal::SCRIPT: - throw Error("script compiler not implemented"); + new (object) Script; + ReadScript(literal.GetScript(), reinterpret_cast