Beispiel #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);
                }
            }
        }
Beispiel #2
0
 public NotSearcher(PluginSearcher searcher)
 {
     Searcher = searcher;
 }
Beispiel #3
0
 public static PluginInfo GetPlugin(this PluginSearcher searcher) => searcher.GetPlugins().FirstOrDefault();