We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class SceneNpc{ public: int talk(Args *stub,Properties &propies) { stub->setNumber("index",1000); //printf("%s %s\n", "print",propies.getString("value").c_str()); this->stub = *stub; return CodeState::NO; } void call() { stub.exec(); } SceneNpc() { } int a; }; LANG_SCRIPT(NPCLIB) { BIND_FUNCTION(SceneNpc,talk); BIND_FIELD(int,SceneNpc,a); BIND_FUNCTION_NAME(SceneNpc,talk,"说话"); }
theLang.readFromFile("test.ai"); Args args; SceneNpc *npc = new SceneNpc(); args.add("o",npc); theLang.exec("start",&args);
There was an error while loading. Please reload this page.