Exemple #1
0
 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);
 }
Exemple #5
0
 public PersistanceManager(ISettingsManager settingsManager, IPluginInvoker pluginInvoker)
 {
     this.settingsManager = settingsManager;
     this.pluginInvoker   = pluginInvoker;
 }
 public PersistanceManager(ISettingsManager settingsManager, IPluginInvoker pluginInvoker)
 {
     this.settingsManager = settingsManager;
     this.pluginInvoker = pluginInvoker;
 }
Exemple #7
0
 public PythonScriptParser(IPluginInvoker pluginInvoker)
 {
     this.pluginInvoker = pluginInvoker;
 }
Exemple #8
0
 public LuaScriptParser(IPluginInvoker pluginInvoker)
 {
     this.pluginInvoker = pluginInvoker;
 }
Exemple #9
0
 public PythonScriptParser(IPluginInvoker pluginInvoker)
 {
     this.pluginInvoker = pluginInvoker;
 }