C# Class Nexus.Client.ModAuthoring.ModPackager

This builds a mod file from a mod Project.
Inheritance: ThreadedBackgroundTask
Afficher le fichier Open project: NexusMods/NexusModManager-4.5

Méthodes publiques

Méthode Description
ModPackager ( FileUtil p_futFileUtilities ) : System

A simple constructor that initializes the object with its dependencies.

PackageMod ( string p_strFileName, Project p_prjModProject ) : void

Creates a mod file at the specified location from the given mod Project.

Méthodes protégées

Méthode Description
DoWork ( object p_objArgs ) : object

Performs the actual mod preparation work.

Private Methods

Méthode Description
Compressor_FileCompressionFinished ( object sender, EventArgs e ) : void

Called when a file has been added to a new mod.

This steps the progress of the task.

Compressor_FileCompressionStarted ( object sender, SevenZip.FileNameEventArgs e ) : void

Called when a file is about to be added to a new mod.

This cancels the compression if the task has been cancelled.

Method Details

DoWork() protected méthode

Performs the actual mod preparation work.
protected DoWork ( object p_objArgs ) : object
p_objArgs object The task arguments.
Résultat object

ModPackager() public méthode

A simple constructor that initializes the object with its dependencies.
public ModPackager ( FileUtil p_futFileUtilities ) : System
p_futFileUtilities Nexus.Client.Util.FileUtil The file utility class.
Résultat System

PackageMod() public méthode

Creates a mod file at the specified location from the given mod Project.
public PackageMod ( string p_strFileName, Project p_prjModProject ) : void
p_strFileName string The path of the mod file to build.
p_prjModProject Project The describing the mod to be built.
Résultat void