00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "asScriptProcessor.h"
00018
00019 #ifdef __COMPILE_WITH_ANGELSCRIPT__
00020
00021 #include "../ScriptHelper.h"
00022 #include "../core/asAssetProcessor.h"
00023
00024 #include "../../assets/ScriptProcessor.h"
00025
00027 void bindScriptProcessor(asIScriptEngine *engine)
00028 {
00029
00030 int r;
00031
00032
00033 r = engine->RegisterObjectType("ScriptProcessor", sizeof(ScriptProcessor), asOBJ_REF); assert(r >= 0);
00034
00035
00036 bindAssetProcessorBase<ScriptProcessor>(engine, "ScriptProcessor");
00037
00038
00039 r = engine->RegisterObjectMethod("ScriptProcessor", "ScriptProcessor& opAssign(const ScriptProcessor &in)",
00040 asFUNCTION(assignT<ScriptProcessor>), asCALL_CDECL_OBJFIRST); assert(r >= 0);
00041
00042
00043 r = engine->RegisterObjectMethod("ScriptProcessor", "Script@ getScript(const string &in)",
00044 asMETHOD(ScriptProcessor, getScript), asCALL_THISCALL); assert(r >= 0);
00045 }
00046
00047 #endif // __COMPILE_WITH_ANGELSCRIPT__
00048
00049
00050