/// <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_igpInstallers">The utility class to use to install the mod items.</param>
 public XmlScriptInstaller(IMod p_modMod, IGameMode p_gmdGameMode, InstallerGroup p_igpInstallers, IVirtualModActivator p_ivaVirtualModActivator)
 {
     Mod        = p_modMod;
     GameMode   = p_gmdGameMode;
     Installers = p_igpInstallers;
     m_ivaVirtualModActivator = p_ivaVirtualModActivator;
     m_mliModLinkInstaller    = m_ivaVirtualModActivator.GetModLinkInstaller();
 }
예제 #2
0
 /// <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, IVirtualModActivator p_ivaVirtualModActivator, InstallerGroup p_igpInstallers, UIUtil p_uipUIProxy)
 {
     Mod                 = p_modMod;
     GameMode            = p_gmdGameMode;
     EnvironmentInfo     = p_eifEnvironmentInfo;
     Installers          = p_igpInstallers;
     UIManager           = p_uipUIProxy;
     VirtualModActivator = p_ivaVirtualModActivator;
     ModLinkInstaller    = VirtualModActivator.GetModLinkInstaller();
 }