public LuaEngine(IEnumerable<IGlobalProvider> globalProviders, IScriptParser scriptParser, IPluginInvoker pluginInvoker) { this.globalProviders = globalProviders; this.scriptParser = scriptParser; this.pluginInvoker = pluginInvoker; luaWorker = new BackgroundWorker(); lua = new Lua(); }
public static Node <TokenInfo> ConstructExpressionInfoTree(IPluginInvoker invoker, IEnumerable <IGlobalProvider> providers) { var root = new Node <TokenInfo>(); root.AddChildren(invoker.ListAllPluginTypes().Select(type => type.ToTokenInfo())); root.AddChildren(invoker.ListAllGlobalEnumTypes().Select(type => type.ToTokenInfo())); root.AddChildren(providers.SelectMany(gp => gp.ListGlobals().Select(obj => obj.ToTokenInfo()))); root.SortChildrenRecursive((a, b) => a.Identifier.Value.CompareTo(b.Identifier.Value)); return(root); }
public static Node<TokenInfo> ConstructExpressionInfoTree(IPluginInvoker invoker, IEnumerable<IGlobalProvider> providers) { var root = new Node<TokenInfo>(); root.AddChildren(invoker.ListAllPluginTypes().Select(type => type.ToTokenInfo())); root.AddChildren(invoker.ListAllGlobalEnumTypes().Select(type => type.ToTokenInfo())); root.AddChildren(providers.SelectMany(gp => gp.ListGlobals().Select(obj => obj.ToTokenInfo()))); root.SortChildrenRecursive((a, b) => a.Identifier.Value.CompareTo(b.Identifier.Value)); return root; }
public RuntimeInfoProvider(IPluginInvoker invoker, IEnumerable <IGlobalProvider> providers, IEventAggregator eventAggregator) { this.providers = providers; this.invoker = invoker; eventAggregator.Subscribe(this); }
public PersistanceManager(ISettingsManager settingsManager, IPluginInvoker pluginInvoker) { this.settingsManager = settingsManager; this.pluginInvoker = pluginInvoker; }
public PythonScriptParser(IPluginInvoker pluginInvoker) { this.pluginInvoker = pluginInvoker; }
public LuaScriptParser(IPluginInvoker pluginInvoker) { this.pluginInvoker = pluginInvoker; }