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