C# Class Nexus.Client.ModManagement.ModDeleter

This deletes mods.
Inheritance: Nexus.Client.ModManagement.ModUninstaller
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
ModDeleter ( IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, IInstallLog p_ilgModInstallLog, IPluginManager p_pmgPluginManager, ReadOnlyObservableList p_rolActiveMods ) : System

A simple constructor that initializes the object with the given values.

Protected Methods

Method Description
DeleteModFile ( IMod p_modMod ) : void

Deletes the given mod file.

This deletes the physical mod file.

OnTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void

Raises the IBackgroundTaskSet.TaskSetCompleted event.

This changes the message to reflect that fact that we are deleting the mod.

Method Details

DeleteModFile() protected method

Deletes the given mod file.
This deletes the physical mod file.
protected DeleteModFile ( IMod p_modMod ) : void
p_modMod IMod The mod to delete.
return void

ModDeleter() public method

A simple constructor that initializes the object with the given values.
public ModDeleter ( IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, IInstallLog p_ilgModInstallLog, IPluginManager p_pmgPluginManager, ReadOnlyObservableList p_rolActiveMods ) : System
p_modMod IMod The mod being installed.
p_gmdGameMode IGameMode The current game mode.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_ilgModInstallLog IInstallLog The install log that tracks mod install info /// for the current game mode
p_pmgPluginManager IPluginManager The plugin manager.
p_rolActiveMods ReadOnlyObservableList The list of active mods.
return System

OnTaskSetCompleted() protected method

Raises the IBackgroundTaskSet.TaskSetCompleted event.
This changes the message to reflect that fact that we are deleting the mod.
protected OnTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void
e Nexus.Client.BackgroundTasks.TaskSetCompletedEventArgs A describing the event arguments.
return void