C# Class ME3Explorer.TalkFile

ファイルを表示 Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
StringRefs List
name string
path string

Public Methods

Method 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

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

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

LoadTlkData() public method

Loads a TLK file into memory.
public LoadTlkData ( string fileName ) : void
fileName string
return void

findDataById() public method

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

Property Details

StringRefs public_oe property

public List StringRefs
return List

name public_oe property

public string name
return string

path public_oe property

public string path
return string