C# Класс KFreonLib.Scripting.ModMaker

Provides ModMaker and general .mod functions.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
JobList List
exec string

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddJob() публичный статический Метод

public static AddJob ( ITexture2D tex2D, string ReplacingImage, int WhichGame, string pathBIOGame ) : void
tex2D ITexture2D
ReplacingImage string
WhichGame int
pathBIOGame string
Результат void

CreateTextureJob() публичный статический Метод

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.
Результат ModJob

GenerateMeshModJob() публичный статический Метод

public static GenerateMeshModJob ( string newfile, int expID, string pccname, byte data ) : ModJob
newfile string
expID int
pccname string
data byte
Результат ModJob

GenerateMeshScript() публичный статический Метод

public static GenerateMeshScript ( string expID, string pcc ) : string
expID string
pcc string
Результат string

GenerateTextureScript() публичный статический Метод

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.
Результат string

GetExpIDsFromScript() публичный статический Метод

Returns list of ExpID's from job script.
public static GetExpIDsFromScript ( string script, bool isTexture ) : List
script string Script to search through.
isTexture bool
Результат List

GetGameVersionFromScript() публичный статический Метод

Return which game script is targeting.
public static GetGameVersionFromScript ( string script, bool isTexture ) : int
script string Script to search through.
isTexture bool
Результат int

GetNamesFromScript() публичный статический Метод

Returns list of Names from job script.
public static GetNamesFromScript ( string script ) : List
script string Script to search through.
Результат List

GetObjectNameFromScript() публичный статический Метод

Returns name of texture from job script.
public static GetObjectNameFromScript ( string script, bool isTexture ) : string
script string Script to search through.
isTexture bool
Результат string

GetPCCsFromScript() публичный статический Метод

Returns list of PCC's from job script.
public static GetPCCsFromScript ( string script, bool isTexture ) : List
script string Script to search through.
isTexture bool
Результат List

Initialise() публичный статический Метод

Sets up ModMaker static things, like the JobList.
public static Initialise ( ) : void
Результат void

LoadDotMod() публичный статический Метод

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.
Результат bool?

WriteModHeader() публичный статический Метод

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.
Результат void

Описание свойств

JobList публичное статическое свойство

public static List JobList
Результат List

exec публичное статическое свойство

public static string exec
Результат string