C# Class KFreonLib.Scripting.ModMaker

Provides ModMaker and general .mod functions.
显示文件 Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
JobList List
exec string

Public Methods

Method Description
AddJob ( ITexture2D tex2D, string ReplacingImage, int WhichGame, string pathBIOGame ) : void
CreateTextureJob ( ITexture2D tex2D, string imgPath, int WhichGame, string pathBIOGame ) : ModJob

Create a texture ModJob from a tex2D with some pathing stuff.

GenerateMeshModJob ( string newfile, int expID, string pccname, byte data ) : ModJob
GenerateMeshScript ( string expID, string pcc ) : string
GenerateTextureScript ( string ExecPath, List pccs, List ExpIDs, string texName, int WhichGame, string pathBIOGame ) : string

Returns a texture .mod script built from template in exec folder, given pcc's, expID's, texture name, GameVersion, and some extra pathing stuff.

GetExpIDsFromScript ( string script, bool isTexture ) : List

Returns list of ExpID's from job script.

GetGameVersionFromScript ( string script, bool isTexture ) : int

Return which game script is targeting.

GetNamesFromScript ( string script ) : List

Returns list of Names from job script.

GetObjectNameFromScript ( string script, bool isTexture ) : string

Returns name of texture from job script.

GetPCCsFromScript ( string script, bool isTexture ) : List

Returns list of PCC's from job script.

Initialise ( ) : void

Sets up ModMaker static things, like the JobList.

LoadDotMod ( string file, int &modCount, System.Windows.Forms.ToolStripProgressBar progbar, bool ExternalCall ) : bool?

Loads a .mod file from given file and returns a nullable boolean (True, null, False).

WriteModHeader ( FileStream fs, int jobcount ) : void

Writes the first invariable parts of a .mod (version, number of jobs) to FileStream.

Private Methods

Method Description
GetVersion ( string version, string &newversion, bool &validVers ) : string

Gets .mod build version, current toolset build version, and a boolean showing if they match. Returns: Current toolset version. Outs: .mod version, bool showing if matching.

ValidateGivenModPCCs ( List &PCCs, List ExpIDs, int WhichGame, string pathBIOGame, List &multiples, List &MultiInds, bool &retval, bool isTexture ) : List

Method Details

AddJob() public static method

public static AddJob ( ITexture2D tex2D, string ReplacingImage, int WhichGame, string pathBIOGame ) : void
tex2D ITexture2D
ReplacingImage string
WhichGame int
pathBIOGame string
return void

CreateTextureJob() public static method

Create a texture ModJob from a tex2D with some pathing stuff.
public static CreateTextureJob ( ITexture2D tex2D, string imgPath, int WhichGame, string pathBIOGame ) : ModJob
tex2D ITexture2D Texture2D to build job from.
imgPath string Path of texture image to create job with.
WhichGame int Game to target.
pathBIOGame string Path to BIOGame of targeted game.
return ModJob

GenerateMeshModJob() public static method

public static GenerateMeshModJob ( string newfile, int expID, string pccname, byte data ) : ModJob
newfile string
expID int
pccname string
data byte
return ModJob

GenerateMeshScript() public static method

public static GenerateMeshScript ( string expID, string pcc ) : string
expID string
pcc string
return string

GenerateTextureScript() public static method

Returns a texture .mod script built from template in exec folder, given pcc's, expID's, texture name, GameVersion, and some extra pathing stuff.
public static GenerateTextureScript ( string ExecPath, List pccs, List ExpIDs, string texName, int WhichGame, string pathBIOGame ) : string
ExecPath string Path to ME3Explorer exec folder.
pccs List PCC's to be affected by .mod.
ExpIDs List ExpID's of PCC's of texName to be affected.
texName string Name of texture to have the .mod edit.
WhichGame int Number of game texName belongs to.
pathBIOGame string BIOGame path of game in question.
return string

GetExpIDsFromScript() public static method

Returns list of ExpID's from job script.
public static GetExpIDsFromScript ( string script, bool isTexture ) : List
script string Script to search through.
isTexture bool
return List

GetGameVersionFromScript() public static method

Return which game script is targeting.
public static GetGameVersionFromScript ( string script, bool isTexture ) : int
script string Script to search through.
isTexture bool
return int

GetNamesFromScript() public static method

Returns list of Names from job script.
public static GetNamesFromScript ( string script ) : List
script string Script to search through.
return List

GetObjectNameFromScript() public static method

Returns name of texture from job script.
public static GetObjectNameFromScript ( string script, bool isTexture ) : string
script string Script to search through.
isTexture bool
return string

GetPCCsFromScript() public static method

Returns list of PCC's from job script.
public static GetPCCsFromScript ( string script, bool isTexture ) : List
script string Script to search through.
isTexture bool
return List

Initialise() public static method

Sets up ModMaker static things, like the JobList.
public static Initialise ( ) : void
return void

LoadDotMod() public static method

Loads a .mod file from given file and returns a nullable boolean (True, null, False).
public static LoadDotMod ( string file, int &modCount, System.Windows.Forms.ToolStripProgressBar progbar, bool ExternalCall ) : bool?
file string .mod file to load.
modCount int REF: Total number of jobs loaded.
progbar System.Windows.Forms.ToolStripProgressBar ProgressBar to increment/change during method.
ExternalCall bool If true, certain functions are disabled/automated.
return bool?

WriteModHeader() public static method

Writes the first invariable parts of a .mod (version, number of jobs) to FileStream.
public static WriteModHeader ( FileStream fs, int jobcount ) : void
fs System.IO.FileStream FileStream to write to.
jobcount int Number of jobs. Exists because it's not always JobList.Count.
return void

Property Details

JobList public_oe static_oe property

public static List JobList
return List

exec public_oe static_oe property

public static string exec
return string