/// <summary> /// Initializes the singleton intances of the mod manager. /// </summary> /// <param name="p_gmdGameMode">The current game mode.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_mrpModRepository">The mod repository from which to get mods and mod metadata.</param> /// <param name="p_dmrMonitor">The download monitor to use to track task progress.</param> /// <param name="p_frgFormatRegistry">The <see cref="IModFormatRegistry"/> that contains the list /// of supported <see cref="IModFormat"/>s.</param> /// <param name="p_mrgModRegistry">The <see cref="ModRegistry"/> that contains the list /// of managed <see cref="IMod"/>s.</param> /// <param name="p_futFileUtility">The file utility class.</param> /// <param name="p_scxUIContext">The <see cref="SynchronizationContext"/> to use to marshall UI interactions to the UI thread.</param> /// <param name="p_ilgInstallLog">The install log tracking mod activations for the current game mode.</param> /// <param name="p_pmgPluginManager">The plugin manager to use to work with plugins.</param> /// <returns>The initialized mod manager.</returns> /// <exception cref="InvalidOperationException">Thrown if the mod manager has already /// been initialized.</exception> public static ModManager Initialize(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, IModRepository p_mrpModRepository, DownloadMonitor p_dmrMonitor, ActivateModsMonitor p_ammMonitor, IModFormatRegistry p_frgFormatRegistry, ModRegistry p_mrgModRegistry, FileUtil p_futFileUtility, SynchronizationContext p_scxUIContext, IInstallLog p_ilgInstallLog, IPluginManager p_pmgPluginManager) { if (m_mmgCurrent != null) throw new InvalidOperationException("The Mod Manager has already been initialized."); m_mmgCurrent = new ModManager(p_gmdGameMode, p_eifEnvironmentInfo, p_mrpModRepository, p_dmrMonitor, p_ammMonitor, p_frgFormatRegistry, p_mrgModRegistry, p_futFileUtility, p_scxUIContext, p_ilgInstallLog, p_pmgPluginManager); return m_mmgCurrent; }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_gmdGameMode">The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_csfFunctions">The proxy providing the implementations of the functions available to the C# script.</param> /// <param name="p_tpeBaseScriptType">The type of the base script from which all C# scripts should derive.</param> public CSharpScriptExecutor(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, CSharpScriptFunctionProxy p_csfFunctions, Type p_tpeBaseScriptType) { m_gmdGameMode = p_gmdGameMode; m_eifEnvironmentInfo = p_eifEnvironmentInfo; m_csfFunctions = p_csfFunctions; BaseScriptType = p_tpeBaseScriptType; }
/// <summary> /// A simple construtor that initializes the object with the reqruied dependencies. /// </summary> /// <param name="p_gmiGameModeInfo">The environment info of the current game mode.</param> /// <param name="p_futFileUtility">The file utility class.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public ModBuilder(IGameModeEnvironmentInfo p_gmiGameModeInfo, IEnvironmentInfo p_eifEnvironmentInfo, FileUtil p_futFileUtility) { GameModeInfo = p_gmiGameModeInfo; EnvironmentInfo = p_eifEnvironmentInfo; FileUtility = p_futFileUtility; OverallProgressMaximum = 4; }
/// <summary> /// A simple constructor that initializes the object with the required dependencies. /// </summary> /// <param name="p_modMod">The mod for which the script is running.</param> /// <param name="p_gmdGameMode">The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_igpInstallers">The utility class to use to install the mod items.</param> /// <param name="p_scxUIContext">The <see cref="SynchronizationContext"/> to use to marshall UI interactions to the UI thread.</param> public XmlScriptExecutor(IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, SynchronizationContext p_scxUIContext) { m_scxSyncContext = p_scxUIContext; Mod = p_modMod; GameMode = p_gmdGameMode; EnvironmentInfo = p_eifEnvironmentInfo; Installers = p_igpInstallers; }
/// <summary> /// A simple constructor that initializes the object with its dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public HelpInformation(IEnvironmentInfo p_eifEnvironmentInfo) { EnvironmentInfo = p_eifEnvironmentInfo; List<HelpLink> lstLinks = new List<HelpLink>(); foreach (KeyValuePair<string, string> kvpLink in p_eifEnvironmentInfo.Settings.HelpLinks) lstLinks.Add(new HelpLink(kvpLink.Key, kvpLink.Value)); HelpLinks = lstLinks; }
/// <summary> /// A simple constructor that initializes the factory with the required dependencies. /// </summary> /// <param name="p_gmdGameMode">The game mode for which the created installer will be installing mods.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_futFileUtility">The file utility class.</param> /// <param name="p_scxUIContext">The <see cref="SynchronizationContext"/> to use to marshall UI interactions to the UI thread.</param> /// <param name="p_ilgInstallLog">The install log that tracks mod install info /// for the current game mode.</param> /// <param name="p_pmgPluginManager">The plugin manager to use to work with plugins.</param> public ModInstallerFactory(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, FileUtil p_futFileUtility, SynchronizationContext p_scxUIContext, IInstallLog p_ilgInstallLog, IPluginManager p_pmgPluginManager, ModManager p_mmModManager) { m_gmdGameMode = p_gmdGameMode; m_eifEnvironmentInfo = p_eifEnvironmentInfo; m_futFileUtility = p_futFileUtility; m_scxUIContext = p_scxUIContext; m_ilgInstallLog = p_ilgInstallLog; m_pmgPluginManager = p_pmgPluginManager; m_mmModManager = p_mmModManager; }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public WarThunderGameModeDescriptor(IEnvironmentInfo p_eifEnvironmentInfo) : base(p_eifEnvironmentInfo) { }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public SettingsGroup(IEnvironmentInfo p_eifEnvironmentInfo) { EnvironmentInfo = p_eifEnvironmentInfo; }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public OblivionGameModeDescriptor(IEnvironmentInfo p_eifEnvironmentInfo) : base(p_eifEnvironmentInfo) { }
/// <summary> /// Creates a <see cref="ConditionStateManager"/> to use when running an XML script. /// </summary> /// <param name="p_modMod">The mod being installed.</param> /// <param name="p_gmdGameMode">The game mode currently bieng managed.</param> /// <param name="p_pmgPluginManager">The plugin manager.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <returns>A <see cref="ConditionStateManager"/> to use when running an XML script.</returns> public override ConditionStateManager CreateConditionStateManager(IMod p_modMod, IGameMode p_gmdGameMode, IPluginManager p_pmgPluginManager, IEnvironmentInfo p_eifEnvironmentInfo) { return new SkyrimConditionStateManager(p_modMod, p_gmdGameMode, p_pmgPluginManager, p_eifEnvironmentInfo); }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_gmdGameMode">>The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public DragonAgeToolLauncher(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) { GameMode = p_gmdGameMode; EnvironmentInfo = p_eifEnvironmentInfo; SetupTools(); }
/// <summary> /// Returns a proxy that implements the functions available to Mod Script scripts. /// </summary> /// <param name="p_modMod">The mod being installed.</param> /// <param name="p_gmdGameMode">The game mode currently bieng managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_igpInstallers">The utility class to use to install the mod items.</param> /// <param name="p_scxUIContext">The <see cref="SynchronizationContext"/> to use to marshall UI interactions to the UI thread.</param> /// <returns>A proxy that implements the functions available to Mod Script scripts.</returns> protected override ModScriptFunctionProxy GetScriptFunctionProxy(IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, SynchronizationContext p_scxUIContext) { return new WoTModScriptFunctionProxy(p_modMod, p_gmdGameMode, p_eifEnvironmentInfo, p_igpInstallers, new ModScriptUIUtil(p_gmdGameMode, p_eifEnvironmentInfo, p_scxUIContext)); }
public WindowsAppHost(ServerApplicationPaths applicationPaths, ILogManager logManager, StartupOptions options, IFileSystem fileSystem, IPowerManagement powerManagement, string releaseAssetFilename, IEnvironmentInfo environmentInfo, MediaBrowser.Controller.Drawing.IImageEncoder imageEncoder, ISystemEvents systemEvents, IMemoryStreamFactory memoryStreamFactory, MediaBrowser.Common.Net.INetworkManager networkManager, Action <string, string> certificateGenerator, Func <string> defaultUsernameFactory) : base(applicationPaths, logManager, options, fileSystem, powerManagement, releaseAssetFilename, environmentInfo, imageEncoder, systemEvents, memoryStreamFactory, networkManager, certificateGenerator, defaultUsernameFactory) { }
/// <summary> /// A sipmle constructor that initializes that object with the required dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_mmgModManager">The mod manager for which we are queing mods to be added.</param> public AddModQueue(IEnvironmentInfo p_eifEnvironmentInfo, ModManager p_mmgModManager) { m_eifEnvironmentInfo = p_eifEnvironmentInfo; m_mmgModManager = p_mmgModManager; }
public HttpConnection(ILogger logger, Socket socket, HttpEndPointListener epl, bool secure, X509Certificate cert, ICryptoProvider cryptoProvider, IStreamHelper streamHelper, ITextEncoding textEncoding, IFileSystem fileSystem, IEnvironmentInfo environment) { _logger = logger; this._socket = socket; this._epl = epl; this.secure = secure; this.cert = cert; _cryptoProvider = cryptoProvider; _streamHelper = streamHelper; _textEncoding = textEncoding; _fileSystem = fileSystem; _environment = environment; if (secure == false) { _stream = new SocketStream(_socket, false); } else { ssl_stream = new SslStream(new SocketStream(_socket, false), false, (t, c, ch, e) => { if (c == null) { return(true); } //var c2 = c as X509Certificate2; //if (c2 == null) //{ // c2 = new X509Certificate2(c.GetRawCertData()); //} //_clientCert = c2; //_clientCertErrors = new int[] { (int)e }; return(true); }); _stream = ssl_stream; } }
/// <summary> /// A simple consturctor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's environement info.</param> public Fallout3GameModeFactory(IEnvironmentInfo p_eifEnvironmentInfo) : base(p_eifEnvironmentInfo) { m_gmdGameModeDescriptor = new Fallout3GameModeDescriptor(p_eifEnvironmentInfo); }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmdGameModeInfo">The descriptor for the game mode being set up.</param> public DragonAge2SetupVM(IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo) : base(p_eifEnvironmentInfo, p_gmdGameModeInfo) { }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_gmdGameMode">>The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public StarboundLauncher(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) : base(p_gmdGameMode, p_eifEnvironmentInfo) { }
/// <summary> /// A simple consturctor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's environement info.</param> public StardewValleyGameModeFactory(IEnvironmentInfo p_eifEnvironmentInfo) { EnvironmentInfo = p_eifEnvironmentInfo; m_gmdGameModeDescriptor = new StardewValleyGameModeDescriptor(p_eifEnvironmentInfo); }
public HdHomerunHost(IServerConfigurationManager config, ILogger logger, IJsonSerializer jsonSerializer, IMediaEncoder mediaEncoder, IFileSystem fileSystem, IHttpClient httpClient, IServerApplicationHost appHost, ISocketFactory socketFactory, INetworkManager networkManager, IEnvironmentInfo environment) : base(config, logger, jsonSerializer, mediaEncoder, fileSystem) { _httpClient = httpClient; _appHost = appHost; _socketFactory = socketFactory; _networkManager = networkManager; _environment = environment; }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's environment info.</param> /// <param name="p_futFileUtility">The file utility class to be used by the game mode.</param> public GamebryoGameModeBase(IEnvironmentInfo p_eifEnvironmentInfo, FileUtil p_futFileUtility) : base(p_eifEnvironmentInfo) { SettingsFiles = CreateSettingsFileContainer(); SetupSettingsFiles(); SettingsGroupViews = new List<ISettingsGroupView>(); GeneralSettingsGroup gsgGeneralSettings = new GeneralSettingsGroup(p_eifEnvironmentInfo, this); ((List<ISettingsGroupView>)SettingsGroupViews).Add(new GeneralSettingsPage(gsgGeneralSettings)); SetupPluginManagement(p_futFileUtility); }
/// <summary> /// A simple consturctor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's environement info.</param> public OblivionGameModeFactory(IEnvironmentInfo p_eifEnvironmentInfo) : base(p_eifEnvironmentInfo) { m_gmdGameModeDescriptor = new OblivionGameModeDescriptor(p_eifEnvironmentInfo); }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmdGameMode">The game mode currently being managed.</param> public GeneralSettingsGroup(IEnvironmentInfo p_eifEnvironmentInfo, IGameMode p_gmdGameMode) : base(p_eifEnvironmentInfo) { GameMode = p_gmdGameMode; RequiredDirectoriesVM = new RequiredDirectoriesControlVM(p_eifEnvironmentInfo, p_gmdGameMode); }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_gmdGameMode">>The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public MorrowindLauncher(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) : base(p_gmdGameMode, p_eifEnvironmentInfo) { }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's environment info.</param> /// <param name="p_futFileUtility">The file utility class to be used by the game mode.</param> public Fallout3GameMode(IEnvironmentInfo p_eifEnvironmentInfo, FileUtil p_futFileUtility) : base(p_eifEnvironmentInfo, p_futFileUtility) { }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_gmdGameMode">>The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public Fallout3ToolLauncher(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) { GameMode = p_gmdGameMode; EnvironmentInfo = p_eifEnvironmentInfo; SetupTools(); }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public SubnauticaBelowZeroGameModeDescriptor(IEnvironmentInfo p_eifEnvironmentInfo) : base(p_eifEnvironmentInfo) { }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmdGameMode">The game mode for which plugins are being managed.</param> /// <param name="p_futFileUtility">The file utility class.</param> /// <param name="p_strMasterlistPath">The path to the masterlist file to use.</param> public PluginSorter(IEnvironmentInfo p_eifEnvironmentInfo, GamebryoGameModeBase p_gmdGameMode, FileUtil p_futFileUtility, string p_strMasterlistPath) { EnvironmentInfo = p_eifEnvironmentInfo; GameMode = p_gmdGameMode; FileUtility = p_futFileUtility; string strSorterAPIPath = Path.Combine(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "data"), p_eifEnvironmentInfo.Is64BitProcess ? "loot64.dll" : "loot32.dll"); m_ptrSorterApi = LoadLibrary(strSorterAPIPath); if (m_ptrSorterApi == IntPtr.Zero) throw new SorterException(String.Format("Could not load BAPI library: {0}", strSorterAPIPath)); LoadMethods(); m_ptrSorterDb = CreateSorterDb(); if (m_ptrSorterDb == IntPtr.Zero) m_booInitialized = false; else { MasterlistPath = p_strMasterlistPath; string strUserList = Path.Combine(Path.GetDirectoryName(p_strMasterlistPath), "userlist.yaml"); if (File.Exists(strUserList)) UserlistPath = strUserList; else UserlistPath = null; if (!String.IsNullOrEmpty(MasterlistPath) && File.Exists(MasterlistPath)) Load(MasterlistPath, UserlistPath); m_booInitialized = true; } }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_gmdGameMode">>The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public DarkSoulsToolLauncher(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) { GameMode = p_gmdGameMode; EnvironmentInfo = p_eifEnvironmentInfo; SetupTools(); }
/// <summary> /// A simple consturctor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's environement info.</param> public GrimrockGameModeFactory(IEnvironmentInfo p_eifEnvironmentInfo) { EnvironmentInfo = p_eifEnvironmentInfo; m_gmdGameModeDescriptor = new GrimrockGameModeDescriptor(p_eifEnvironmentInfo); }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmdGameModeInfo">The descriptor for the game mode being set up.</param> public XRebirthSetupVM(IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo) :base(p_eifEnvironmentInfo, p_gmdGameModeInfo) { }
public ImageMagickEncoder(ILogger logger, IApplicationPaths appPaths, Func <IHttpClient> httpClientFactory, IFileSystem fileSystem, IEnvironmentInfo environment) { _logger = logger; _appPaths = appPaths; _httpClientFactory = httpClientFactory; _fileSystem = fileSystem; _environment = environment; LogVersion(); }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's environment info.</param> public GameModeBase(IEnvironmentInfo p_eifEnvironmentInfo) { EnvironmentInfo = p_eifEnvironmentInfo; m_gmdGameModeInfo = CreateGameModeDescriptor(); GameModeEnvironmentInfo = new GameModeInfo(this, p_eifEnvironmentInfo); }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmdGameModeInfo">The descriptor for the game mode being set up.</param> public Cyberpunk2077SetupVM(IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo) : base(p_eifEnvironmentInfo, p_gmdGameModeInfo) { }
public M3UTunerHost(IServerConfigurationManager config, ILogger logger, IJsonSerializer jsonSerializer, IMediaEncoder mediaEncoder, IFileSystem fileSystem, IHttpClient httpClient, IServerApplicationHost appHost, IEnvironmentInfo environment, INetworkManager networkManager) : base(config, logger, jsonSerializer, mediaEncoder, fileSystem) { _httpClient = httpClient; _appHost = appHost; _environment = environment; _networkManager = networkManager; }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_gmdGameMode">The current game mode.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_scxSyncContext">The synchronization context to use to marshall calls to the UI thread.</param> public ModScriptUIUtil(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, SynchronizationContext p_scxSyncContext) : base(p_gmdGameMode, p_eifEnvironmentInfo, p_scxSyncContext) { }
public CoreAppHost(ServerApplicationPaths applicationPaths, ILoggerFactory loggerFactory, StartupOptions options, IFileSystem fileSystem, IEnvironmentInfo environmentInfo, MediaBrowser.Controller.Drawing.IImageEncoder imageEncoder, MediaBrowser.Common.Net.INetworkManager networkManager) : base(applicationPaths, loggerFactory, options, fileSystem, environmentInfo, imageEncoder, networkManager) { }
/// <summary> /// A simple constructor that initializes the object with the required dependencies. /// </summary> /// <param name="p_gmdGameMode">The game mode to which this info belongs.</param> /// <param name="p_eifEnvironmentInfo">The application's environement info.</param> public GameModeInfo(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) { GameMode = p_gmdGameMode; EnvironmentInfo = p_eifEnvironmentInfo; }
internal HttpResponseStream(Stream stream, HttpListenerResponse response, bool ignore_errors, IMemoryStreamFactory memoryStreamFactory, IAcceptSocket socket, bool supportsDirectSocketAccess, IEnvironmentInfo environment, IFileSystem fileSystem, ILogger logger) { _response = response; _ignore_errors = ignore_errors; _memoryStreamFactory = memoryStreamFactory; _socket = socket; _supportsDirectSocketAccess = supportsDirectSocketAccess; _environment = environment; _fileSystem = fileSystem; _logger = logger; _stream = stream; }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_lstSorter">The PluginSorter instance to use to set plugin order.</param> public PluginSorterUpdater(IEnvironmentInfo p_eifEnvironmentInfo, PluginSorter p_lstSorter) : base(p_eifEnvironmentInfo) { SetRequiresRestart(false); PluginSorter = p_lstSorter; }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> public OblivionSupportedTools(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) : base(p_gmdGameMode, p_eifEnvironmentInfo) { }
/// <summary> /// A simple consturctor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's environement info.</param> public MorrowindGameModeFactory(IEnvironmentInfo p_eifEnvironmentInfo) : base(p_eifEnvironmentInfo) { m_gmdGameModeDescriptor = new MorrowindGameModeDescriptor(p_eifEnvironmentInfo); }
/// <summary> /// Returns a proxy that implements the functions available to Mod Script scripts. /// </summary> /// <param name="p_modMod">The mod being installed.</param> /// <param name="p_gmdGameMode">The game mode currently bieng managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_igpInstallers">The utility class to use to install the mod items.</param> /// <param name="p_scxUIContext">The <see cref="SynchronizationContext"/> to use to marshall UI interactions to the UI thread.</param> /// <returns>A proxy that implements the functions available to Mod Script scripts.</returns> protected override ModScriptFunctionProxy GetScriptFunctionProxy(IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, SynchronizationContext p_scxUIContext) { return(new MorrowindModScriptFunctionProxy(p_modMod, p_gmdGameMode, p_eifEnvironmentInfo, p_igpInstallers, new ModScriptUIUtil(p_gmdGameMode, p_eifEnvironmentInfo, p_scxUIContext))); }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_gmdGameMode">>The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public DarkSoulsLauncher(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) : base(p_gmdGameMode, p_eifEnvironmentInfo) { }
public HdHomerunUdpStream(MediaSourceInfo mediaSource, TunerHostInfo tunerHostInfo, string originalStreamId, IHdHomerunChannelCommands channelCommands, int numTuners, IFileSystem fileSystem, IHttpClient httpClient, ILogger logger, IServerApplicationPaths appPaths, IServerApplicationHost appHost, ISocketFactory socketFactory, INetworkManager networkManager, IEnvironmentInfo environment) : base(mediaSource, tunerHostInfo, environment, fileSystem, logger, appPaths) { _appHost = appHost; _socketFactory = socketFactory; _networkManager = networkManager; OriginalStreamId = originalStreamId; _channelCommands = channelCommands; _numTuners = numTuners; EnableStreamSharing = true; }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_modMod">The mod for which the script is running.</param> /// <param name="p_gmdGameMode">The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_igpInstallers">The utility class to use to install the mod items.</param> /// <param name="p_uipUIProxy">The UI manager to use to interact with UI elements.</param> public WoTModScriptFunctionProxy(IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, ModScriptUIUtil p_uipUIProxy) : base(p_modMod, p_gmdGameMode, p_eifEnvironmentInfo, p_igpInstallers, p_uipUIProxy) { }
public FileRefresher(string path, IFileSystem fileSystem, IServerConfigurationManager configurationManager, ILibraryManager libraryManager, ITaskManager taskManager, ILogger logger, ITimerFactory timerFactory, IEnvironmentInfo environmentInfo, ILibraryManager libraryManager1) { logger.LogDebug("New file refresher created for {0}", path); Path = path; _fileSystem = fileSystem; ConfigurationManager = configurationManager; LibraryManager = libraryManager; TaskManager = taskManager; Logger = logger; _timerFactory = timerFactory; _environmentInfo = environmentInfo; _libraryManager = libraryManager1; AddPath(path); }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_modMod">The mod for which the script is running.</param> /// <param name="p_gmdGameMode">The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_igpInstallers">The utility class to use to install the mod items.</param> /// <param name="p_uipUIProxy">The UI manager to use to interact with UI elements.</param> public ScriptFunctionProxy(IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, UIUtil p_uipUIProxy) { Mod = p_modMod; GameMode = p_gmdGameMode; EnvironmentInfo = p_eifEnvironmentInfo; Installers = p_igpInstallers; UIManager = p_uipUIProxy; }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_modMod">The mod for which the script is running.</param> /// <param name="p_gmdGameMode">The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_igpInstallers">The utility class to use to install the mod items.</param> /// <param name="p_uipUIProxy">The UI manager to use to interact with UI elements.</param> public MorrowindModScriptFunctionProxy(IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, IVirtualModActivator p_ivaVirtualModActivator, InstallerGroup p_igpInstallers, ModScriptUIUtil p_uipUIProxy) : base(p_modMod, p_gmdGameMode, p_eifEnvironmentInfo, p_ivaVirtualModActivator, p_igpInstallers, p_uipUIProxy) { }
/// <summary> /// Returns a proxy that implements the functions available to C# scripts. /// </summary> /// <param name="p_modMod">The mod being installed.</param> /// <param name="p_gmdGameMode">The game mode currently bieng managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_igpInstallers">The utility class to use to install the mod items.</param> /// <param name="p_scxUIContext">The <see cref="SynchronizationContext"/> to use to marshall UI interactions to the UI thread.</param> /// <returns>A proxy that implements the functions available to C# scripts.</returns> protected override CSharpScriptFunctionProxy GetScriptFunctionProxy(IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, SynchronizationContext p_scxUIContext) { BsaManager bmgBsaManager = new BsaManager((SkyrimGameMode)p_gmdGameMode); UIUtil uitUiUtilities = new UIUtil(p_gmdGameMode, p_eifEnvironmentInfo, p_scxUIContext); return new SkyrimCSharpScriptFunctionProxy(p_modMod, p_gmdGameMode, p_eifEnvironmentInfo, p_igpInstallers, bmgBsaManager, uitUiUtilities); }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> public FalloutNVSupportedTools(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) : base(p_gmdGameMode, p_eifEnvironmentInfo) { }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmdGameModeInfo">The descriptor for the game mode being set up.</param> public StarboundSetupVM(IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo) :base(p_eifEnvironmentInfo, p_gmdGameModeInfo) { }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_gmdGameMode">>The game mode currently being managed.</param> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> public Fallout3Launcher(IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo) : base(p_gmdGameMode, p_eifEnvironmentInfo) { }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmdGameModeInfo">The descriptor for the game mode being set up.</param> public DarkSouls2SetupVM(IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo) :base(p_eifEnvironmentInfo, p_gmdGameModeInfo) { }
public SharedHttpStream(MediaSourceInfo mediaSource, TunerHostInfo tunerHostInfo, string originalStreamId, IFileSystem fileSystem, IHttpClient httpClient, ILogger logger, IServerApplicationPaths appPaths, IServerApplicationHost appHost, IEnvironmentInfo environment) : base(mediaSource, tunerHostInfo, environment, fileSystem, logger, appPaths) { _httpClient = httpClient; _appHost = appHost; OriginalStreamId = originalStreamId; EnableStreamSharing = true; }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmdGameModeInfo">The descriptor of the current game mode.</param> /// <param name="p_booUseAdditionalChecks">Whether to use additional checks to validate the folders.</param> public RequiredDirectoriesControlVM(IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo, bool p_booUseAdditionalChecks) { EnvironmentInfo = p_eifEnvironmentInfo; GameModeDescriptor = p_gmdGameModeInfo; m_booRequiredTool = GameModeDescriptor.OrderedRequiredToolFileNames != null; Errors = new ErrorContainer(); m_booUseAdditionalChecks = p_booUseAdditionalChecks; }
private HttpConnection(ILogger logger, IAcceptSocket socket, EndPointListener epl, bool secure, ICertificate cert, ICryptoProvider cryptoProvider, IStreamFactory streamFactory, IMemoryStreamFactory memoryStreamFactory, ITextEncoding textEncoding, IFileSystem fileSystem, IEnvironmentInfo environment) { _logger = logger; this._socket = socket; this._epl = epl; this.secure = secure; this.cert = cert; _cryptoProvider = cryptoProvider; _memoryStreamFactory = memoryStreamFactory; _textEncoding = textEncoding; _fileSystem = fileSystem; _environment = environment; _streamFactory = streamFactory; }
/// <summary> /// A simple constructor that initializes the object with the given dependencies. /// </summary> /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param> /// <param name="p_gmrInstalledGames">The registry of insalled games.</param> /// <param name="p_gmdGameMode">The game mode currently being managed.</param> /// <param name="p_mrpModRepository">The repository we are logging in to.</param> /// <param name="p_dmtMonitor">The download monitor to use to track task progress.</param> /// <param name="p_umgUpdateManager">The update manager to use to perform updates.</param> /// <param name="p_mmgModManager">The <see cref="ModManager"/> to use to manage mods.</param> /// <param name="p_pmgPluginManager">The <see cref="PluginManager"/> to use to manage plugins.</param> public MainFormVM(IEnvironmentInfo p_eifEnvironmentInfo, GameModeRegistry p_gmrInstalledGames, IGameMode p_gmdGameMode, IModRepository p_mrpModRepository, DownloadMonitor p_dmtMonitor, ActivateModsMonitor p_ammMonitor, UpdateManager p_umgUpdateManager, ModManager p_mmgModManager, IPluginManager p_pmgPluginManager) { EnvironmentInfo = p_eifEnvironmentInfo; GameMode = p_gmdGameMode; GameMode.GameLauncher.GameLaunching += new CancelEventHandler(GameLauncher_GameLaunching); ModManager = p_mmgModManager; ModRepository = p_mrpModRepository; UpdateManager = p_umgUpdateManager; ModManagerVM = new ModManagerVM(p_mmgModManager, p_eifEnvironmentInfo.Settings, p_gmdGameMode.ModeTheme); DownloadMonitorVM = new DownloadMonitorVM(p_dmtMonitor, p_eifEnvironmentInfo.Settings, p_mmgModManager, p_mrpModRepository); ModActivationMonitor = p_ammMonitor; ActivateModsMonitorVM = new ActivateModsMonitorVM(p_ammMonitor, p_eifEnvironmentInfo.Settings, p_mmgModManager); if (GameMode.UsesPlugins) PluginManagerVM = new PluginManagerVM(p_pmgPluginManager, p_eifEnvironmentInfo.Settings, p_gmdGameMode, p_ammMonitor); HelpInfo = new HelpInformation(p_eifEnvironmentInfo); GeneralSettingsGroup gsgGeneralSettings = new GeneralSettingsGroup(p_eifEnvironmentInfo); foreach (IModFormat mftFormat in p_mmgModManager.ModFormats) gsgGeneralSettings.AddFileAssociation(mftFormat.Extension, mftFormat.Name); ModOptionsSettingsGroup mosModOptions = new ModOptionsSettingsGroup(p_eifEnvironmentInfo); List<ISettingsGroupView> lstSettingGroups = new List<ISettingsGroupView>(); lstSettingGroups.Add(new GeneralSettingsPage(gsgGeneralSettings)); lstSettingGroups.Add(new ModOptionsPage(mosModOptions)); DownloadSettingsGroup dsgDownloadSettings = new DownloadSettingsGroup(p_eifEnvironmentInfo, ModRepository); lstSettingGroups.Add(new DownloadSettingsPage(dsgDownloadSettings)); if (p_gmdGameMode.SettingsGroupViews != null) lstSettingGroups.AddRange(p_gmdGameMode.SettingsGroupViews); SettingsFormVM = new SettingsFormVM(p_gmdGameMode, p_eifEnvironmentInfo, lstSettingGroups); UpdateCommand = new Command("Update", String.Format("Update {0}", EnvironmentInfo.Settings.ModManagerName), UpdateProgramme); LogoutCommand = new Command("Logout", "Logout", Logout); List<Command> lstChangeGameModeCommands = new List<Command>(); List<IGameModeDescriptor> lstSortedModes = new List<IGameModeDescriptor>(p_gmrInstalledGames.RegisteredGameModes); lstSortedModes.Sort((x, y) => x.Name.CompareTo(y.Name)); foreach (IGameModeDescriptor gmdInstalledGame in lstSortedModes) { string strId = gmdInstalledGame.ModeId; string strName = gmdInstalledGame.Name; string strDescription = String.Format("Change game to {0}", gmdInstalledGame.Name); Image imgCommandIcon = new Icon(gmdInstalledGame.ModeTheme.Icon, 32, 32).ToBitmap(); lstChangeGameModeCommands.Add(new Command(strId, strName, strDescription, imgCommandIcon, () => ChangeGameMode(strId), true)); } lstChangeGameModeCommands.Add(new Command("Change Default Game...", "Change Default Game", () => ChangeGameMode(CHANGE_DEFAULT_GAME_MODE))); lstChangeGameModeCommands.Add(new Command("Rescan Installed Games...", "Rescan Installed Games", () => ChangeGameMode(RESCAN_INSTALLED_GAMES))); ChangeGameModeCommands = lstChangeGameModeCommands; }
public static async Task <HttpConnection> Create(ILogger logger, IAcceptSocket sock, EndPointListener epl, bool secure, ICertificate cert, ICryptoProvider cryptoProvider, IStreamFactory streamFactory, IMemoryStreamFactory memoryStreamFactory, ITextEncoding textEncoding, IFileSystem fileSystem, IEnvironmentInfo environment) { var connection = new HttpConnection(logger, sock, epl, secure, cert, cryptoProvider, streamFactory, memoryStreamFactory, textEncoding, fileSystem, environment); await connection.InitStream().ConfigureAwait(false); return(connection); }