Пример #1
0
 public GameQueryBuilder(IPluginCollection <IGameInstaller> installers,
                         IStoneProvider stone, IAsyncJobQueue <TaskResult <IFile> > installQueue, IGameLibrary gameLibrary)
 {
     this.Installers   = installers;
     this.Stone        = stone;
     this.InstallQueue = installQueue;
     this.GameLibrary  = gameLibrary;
 }
 public ScrapingQueryBuilder(IPluginCollection <IScraper> scrapers,
                             IPluginCollection <ICuller> cullers,
                             IScrapeEngine <IGameRecord> scrapeEngine)
 {
     this.Scrapers     = scrapers;
     this.Cullers      = cullers;
     this.ScrapeEngine = scrapeEngine;
 }
Пример #3
0
 public ScrapingQueryBuilder(IGameLibrary gameLibrary,
                             IPluginCollection <IScraper> scrapers,
                             IPluginCollection <ICuller> cullers,
                             IPluginCollection <IGameMetadataTraverser> gameTraversers,
                             IPluginCollection <IFileInstallationTraverser> fileTraversers)
 {
     this.GameLibrary               = gameLibrary;
     this.Scrapers                  = scrapers;
     this.Cullers                   = cullers;
     this.GameTraversers            = gameTraversers;
     this.FileTraversers            = fileTraversers;
     this.GameScrapeContextJobQueue = new AsyncJobQueue <IEnumerable <ISeed> >(false);
 }
 public EmulationQueryBuilder(IPluginCollection <IEmulator> emulators,
                              IStoneProvider stone,
                              IGameLibrary library,
                              ISaveLocationProvider saveLocationProvider,
                              InputQueryBuilder inputQueryBuilder,
                              ControllerLayoutQueryBuilder controllerLayoutQueryBuilder)
 {
     this.Emulators            = emulators;
     this.Stone                = stone;
     this.SaveLocationProvider = saveLocationProvider;
     this.InputQueryApi        = inputQueryBuilder;
     this.ControllerQueryApi   = controllerLayoutQueryBuilder;
     this.GameLibrary          = library;
 }
 public IPluginCollection GetPlugins()
 {
     return(this.plugins ?? (this.plugins = new PluginCollection(this.ParentContext.PluginResolver)));
 }
Пример #6
0
 public QModFactory(IPluginCollection pluginCollection = null, IManifestValidator validator = null)
 {
     this.Validator        = validator ?? new ManifestValidator();
     this.PluginCollection = pluginCollection ?? PluginCollection;
 }
Пример #7
0
 public ContainerSetup(List <InstanceRecord> instanceRecords, IPluginCollection plugins, List <IGeneratedCodeListener> generatorListeners)
 {
     m_instanceRecords    = instanceRecords;
     m_plugins            = plugins;
     m_generatorListeners = generatorListeners;
 }
Пример #8
0
        public Container(IContainer parent)
        {
            m_parent = parent;

            m_plugins = m_parent == null ? new PluginCollection() : new PluginCollection(parent.Plugins);
        }