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