Example #1
0
        public static IEnumerable <PluginInfo> GetPlugins(this PluginSearcher searcher)
        {
            var plugins = PluginManager.instance.GetPluginsInfo().ToArray();

            foreach (var plugin in plugins)
            {
                if (searcher.IsMatch(plugin))
                {
                    yield return(plugin);
                }
            }
        }
Example #2
0
 public NotSearcher(PluginSearcher searcher)
 {
     Searcher = searcher;
 }
Example #3
0
 public static PluginInfo GetPlugin(this PluginSearcher searcher) => searcher.GetPlugins().FirstOrDefault();