C# 클래스 Nexus.Client.ModManagement.Scripting.XmlScript.XmlScriptInstaller

Performs the mod installation based on the XML script.
상속: BackgroundTask
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
Install ( string p_strModName, XmlScript p_xscScript, ConditionStateManager p_csmStateManager, ICollection p_colFilesToInstall, ICollection p_colPluginsToActivate ) : bool

Performs the mod installation based on the XML script.

XmlScriptInstaller ( IMod p_modMod, IGameMode p_gmdGameMode, InstallerGroup p_igpInstallers ) : System

A simple constructor that initializes the object with the required dependencies.

보호된 메소드들

메소드 설명
InstallFile ( InstallableFile p_ilfFile, bool p_booActivate ) : bool

Installs the given InstallableFile, and activates any plugins it encompasses as requested.

InstallFiles ( XmlScript p_xscScript, ConditionStateManager p_csmStateManager, ICollection p_colFilesToInstall, ICollection p_colPluginsToActivate ) : bool

Installs and activates files are required. This method is used by the background worker.

InstallFolderFromMod ( InstallableFile p_ilfFile ) : bool

Recursively copies all files and folders from one location to another.

비공개 메소드들

메소드 설명
SaveXMLInstalledFiles ( string p_strFrom, string p_strTo ) : void

Create the XML file with the Install Files list (From the rar to the folder).

메소드 상세

Install() 공개 메소드

Performs the mod installation based on the XML script.
public Install ( string p_strModName, XmlScript p_xscScript, ConditionStateManager p_csmStateManager, ICollection p_colFilesToInstall, ICollection p_colPluginsToActivate ) : bool
p_strModName string The name of the mod whose script in executing.
p_xscScript XmlScript The script that is executing.
p_csmStateManager ConditionStateManager The state manager managing the install state.
p_colFilesToInstall ICollection The list of files to install.
p_colPluginsToActivate ICollection The list of plugins to activate.
리턴 bool

InstallFile() 보호된 메소드

Installs the given InstallableFile, and activates any plugins it encompasses as requested.
protected InstallFile ( InstallableFile p_ilfFile, bool p_booActivate ) : bool
p_ilfFile InstallableFile The file to install.
p_booActivate bool Whether or not to activate the given file, if it is a plugin.
리턴 bool

InstallFiles() 보호된 메소드

Installs and activates files are required. This method is used by the background worker.
protected InstallFiles ( XmlScript p_xscScript, ConditionStateManager p_csmStateManager, ICollection p_colFilesToInstall, ICollection p_colPluginsToActivate ) : bool
p_xscScript XmlScript
p_csmStateManager ConditionStateManager
p_colFilesToInstall ICollection
p_colPluginsToActivate ICollection
리턴 bool

InstallFolderFromMod() 보호된 메소드

Recursively copies all files and folders from one location to another.
protected InstallFolderFromMod ( InstallableFile p_ilfFile ) : bool
p_ilfFile InstallableFile The folder to install.
리턴 bool

XmlScriptInstaller() 공개 메소드

A simple constructor that initializes the object with the required dependencies.
public XmlScriptInstaller ( IMod p_modMod, IGameMode p_gmdGameMode, InstallerGroup p_igpInstallers ) : System
p_modMod IMod The mod for which the script is running.
p_gmdGameMode IGameMode The game mode currently being managed.
p_igpInstallers InstallerGroup The utility class to use to install the mod items.
리턴 System