/// <summary> /// creates a new <see cref="ScriptCompiler"/> /// </summary> /// <param name="logger">access to logging</param> /// <param name="parser">parser used to parse scripts</param> /// <param name="cache">access to object cache</param> /// <param name="methodprovider">provides managed method hosts to scripts</param> /// <param name="scriptservice">used to load scripts if not found in cache</param> /// <param name="archive">archive used to load revisions</param> /// <param name="importservice">access to javascript imports</param> /// <param name="pythonservice">access to python script logic</param> /// <param name="luaservice">used to execute lua code</param> public ScriptCompiler(ILogger <ScriptCompiler> logger, IScriptParser parser, ICacheService cache, IMethodProviderService methodprovider, IScriptService scriptservice, IArchiveService archive, IScriptImportService importservice, IPythonService pythonservice, ILuaService luaservice) { this.parser = parser; this.cache = cache; this.scriptservice = scriptservice; this.archive = archive; this.importservice = importservice; this.pythonservice = pythonservice; this.luaservice = luaservice; this.logger = logger; if (parser != null) { parser.Extensions.AddExtensions(typeof(Math)); parser.Extensions.AddExtensions <ScriptEnumerations>(); parser.ImportProvider = methodprovider; } ReactInitializer.Initialize(); }
/// <summary> /// creates a new <see cref="LuaScript"/> /// </summary> /// <param name="code">code to execute</param> /// <param name="luaservice">used to execute code</param> public LuaScript(string code, ILuaService luaservice) { this.code = code; this.luaservice = luaservice; }
public LuaController(ILuaService luaService) { _luaService = luaService; }
public virtual void InitializeLuaHandler() { m_luaService = LuaSerivce.Instance; }