C# Class KFreonLib.Textures.Methods

Provides methods related to textures.
Show file Open project: ME3Explorer/ME3Explorer

Public Methods

Method 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 method

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.
return uint

FormatTexmodHashAsString() public static method

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

FormatTexmodHashAsUint() public static method

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.
return uint

GetExternalData() public static method

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.
return byte[]

ParseFormat() public static method

public static ParseFormat ( string formatString ) : ImageEngineFormat
formatString string
return ImageEngineFormat

StringifyFormat() public static method

public static StringifyFormat ( ImageEngineFormat format ) : string
format ImageEngineFormat
return string