C# Class Nexus.Client.ModAuthoring.ModPackager

This builds a mod file from a mod Project.
Inheritance: ThreadedBackgroundTask
显示文件 Open project: NexusMods/NexusModManager-4.5

Public Methods

Method 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.

Protected Methods

Method Description
DoWork ( object p_objArgs ) : object

Performs the actual mod preparation work.

Private Methods

Method 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 method

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

ModPackager() public method

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.
return System

PackageMod() public method

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.
return void