C# Class KFreonLib.Textures.Methods

Provides methods related to textures.
Afficher le fichier Open project: ME3Explorer/ME3Explorer

Méthodes publiques

Méthode Description
FindHashByName ( string name, List Files, List IDs, List TreeTexes ) : uint

Finds hash from texture name given list of PCC's and ExpID's.

FormatTexmodHashAsString ( uint hash ) : string

Returns hash as a string in the 0xhash format.

FormatTexmodHashAsUint ( string line ) : uint

Returns a uint of a hash in string format.

GetExternalData ( string file ) : byte[]

Gets external image data as byte[] with some buffering i.e. retries if fails up to 20 times.

ParseFormat ( string formatString ) : ImageEngineFormat
StringifyFormat ( ImageEngineFormat format ) : string

Method Details

FindHashByName() public static méthode

Finds hash from texture name given list of PCC's and ExpID's.
public static FindHashByName ( string name, List Files, List IDs, List TreeTexes ) : uint
name string Name of texture.
Files List List of PCC's to search with.
IDs List List of ExpID's to search with.
TreeTexes List List of tree textures to search through.
Résultat uint

FormatTexmodHashAsString() public static méthode

Returns hash as a string in the 0xhash format.
public static FormatTexmodHashAsString ( uint hash ) : string
hash uint Hash as a uint.
Résultat string

FormatTexmodHashAsUint() public static méthode

Returns a uint of a hash in string format.
public static FormatTexmodHashAsUint ( string line ) : uint
line string String containing hash in texmod log format of name|0xhash.
Résultat uint

GetExternalData() public static méthode

Gets external image data as byte[] with some buffering i.e. retries if fails up to 20 times.
public static GetExternalData ( string file ) : byte[]
file string File to get data from.
Résultat byte[]

ParseFormat() public static méthode

public static ParseFormat ( string formatString ) : ImageEngineFormat
formatString string
Résultat ImageEngineFormat

StringifyFormat() public static méthode

public static StringifyFormat ( ImageEngineFormat format ) : string
format ImageEngineFormat
Résultat string