C# Class KFreonLib.Scripting.ModMaker

Provides ModMaker and general .mod functions.
Afficher le fichier Open project: ME3Explorer/ME3Explorer Class Usage Examples

Méthodes publiques

Свойство Type Description
JobList List
exec string

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AddJob ( ITexture2D tex2D, string ReplacingImage, int WhichGame, string pathBIOGame ) : void
tex2D ITexture2D
ReplacingImage string
WhichGame int
pathBIOGame string
Résultat void

CreateTextureJob() public static méthode

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.
Résultat ModJob

GenerateMeshModJob() public static méthode

public static GenerateMeshModJob ( string newfile, int expID, string pccname, byte data ) : ModJob
newfile string
expID int
pccname string
data byte
Résultat ModJob

GenerateMeshScript() public static méthode

public static GenerateMeshScript ( string expID, string pcc ) : string
expID string
pcc string
Résultat string

GenerateTextureScript() public static méthode

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.
Résultat string

GetExpIDsFromScript() public static méthode

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

GetGameVersionFromScript() public static méthode

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

GetNamesFromScript() public static méthode

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

GetObjectNameFromScript() public static méthode

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

GetPCCsFromScript() public static méthode

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

Initialise() public static méthode

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

LoadDotMod() public static méthode

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.
Résultat bool?

WriteModHeader() public static méthode

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.
Résultat void

Property Details

JobList public_oe static_oe property

public static List JobList
Résultat List

exec public_oe static_oe property

public static string exec
Résultat string