C# Class ME3Explorer.TalkFile

Afficher le fichier Open project: ME3Explorer/ME3Explorer Class Usage Examples

Méthodes publiques

Свойство Type Description
StringRefs List
name string
path string

Méthodes publiques

Méthode Description
DumpToFile ( string fileName ) : void

Writes data stored in memory to an appriopriate text format.

LoadTlkData ( string fileName ) : void

Loads a TLK file into memory.

findDataById ( int strRefID, bool withFileName = false ) : string

Private Methods

Méthode Description
CompareTlkStringRef ( TLKStringRef strRef1, TLKStringRef strRef2 ) : int
GetString ( int &bitOffset ) : string

Starts reading 'Bits' array at position 'bitOffset'. Read data is used on a Huffman Tree to decode read bits into real strings. 'bitOffset' variable is updated with last read bit PLUS ONE (first unread bit).

Global variables used: List(of HuffmanNodes) CharacterTree BitArray Bits

OnProgressChanged ( int percentProgress ) : void
SaveToXmlFile ( string fileName ) : void

Writing data in an XML format.

Method Details

DumpToFile() public méthode

Writes data stored in memory to an appriopriate text format.
public DumpToFile ( string fileName ) : void
fileName string
Résultat void

LoadTlkData() public méthode

Loads a TLK file into memory.
public LoadTlkData ( string fileName ) : void
fileName string
Résultat void

findDataById() public méthode

public findDataById ( int strRefID, bool withFileName = false ) : string
strRefID int
withFileName bool
Résultat string

Property Details

StringRefs public_oe property

public List StringRefs
Résultat List

name public_oe property

public string name
Résultat string

path public_oe property

public string path
Résultat string