C# 클래스 KFreonLib.Scripting.ModMaker

Provides ModMaker and general .mod functions.
파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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