C# Class UDKExplorer.UDK.UDKFile

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

Public Properties

Property Type Description
Loaded bool
bDLCStored bool
header byte[]

Private Properties

Property Type Description
getData void

Public Methods

Method Description
FindNameOrAdd ( string n ) : int
UDKFile ( ) : System
UDKFile ( string udkFilePath, bool fullFileInMemory = false ) : System

UDKFile class constructor. It also load namelist, importlist and exportinfo (not exportdata) from udk file

addExport ( ExportEntry exportEntry ) : void
addImport ( UDKFile importEntry ) : void
addName ( string n ) : void
appendSave ( string newFileName, bool attemptOverwrite, int HeadeNameOffset = 34 ) : string

This method is an alternate way of saving PCCs Instead of reconstructing the PCC from the data taken, it instead copies across the existing data, appends new exports, updates the export list, changes the namelist location and updates the value in the header

canClone ( ) : bool
findName ( string nameToFind ) : int

Checks whether a name exists in the PCC and returns its index If it doesn't exist returns -1

getClassName ( int index ) : string
getEntry ( int index ) : IEntry

gets Export or Import entry

getMetadataString ( ) : string
getName ( int index ) : string
getObjectClass ( int index ) : string
getObjectName ( int index ) : string
isExport ( int index ) : bool
isImport ( int index ) : bool
isName ( int index ) : bool
save ( ) : void

save PCC to same file by reconstruction if possible, append if not

save ( string path ) : void

save PCC by reconstruction if possible, append if not

saveByReconstructing ( string path ) : void

save PCCObject to file by reconstruction from data

Private Methods

Method Description
getData ( int offset, ExportEntry exp = null ) : void

given export data offset, the function recovers it from the file.

Method Details

FindNameOrAdd() public method

public FindNameOrAdd ( string n ) : int
n string
return int

UDKFile() public method

public UDKFile ( ) : System
return System

UDKFile() public method

UDKFile class constructor. It also load namelist, importlist and exportinfo (not exportdata) from udk file
public UDKFile ( string udkFilePath, bool fullFileInMemory = false ) : System
udkFilePath string full path + file name of desired udk file.
fullFileInMemory bool
return System

addExport() public method

public addExport ( ExportEntry exportEntry ) : void
exportEntry ExportEntry
return void

addImport() public method

public addImport ( UDKFile importEntry ) : void
importEntry UDKFile
return void

addName() public method

public addName ( string n ) : void
n string
return void

appendSave() public method

This method is an alternate way of saving PCCs Instead of reconstructing the PCC from the data taken, it instead copies across the existing data, appends new exports, updates the export list, changes the namelist location and updates the value in the header
public appendSave ( string newFileName, bool attemptOverwrite, int HeadeNameOffset = 34 ) : string
newFileName string The filename to write to
attemptOverwrite bool Do you wish to attempt to overwrite the existing export
HeadeNameOffset int
return string

canClone() public method

public canClone ( ) : bool
return bool

findName() public method

Checks whether a name exists in the PCC and returns its index If it doesn't exist returns -1
public findName ( string nameToFind ) : int
nameToFind string The name of the string to find
return int

getClassName() public method

public getClassName ( int index ) : string
index int
return string

getEntry() public method

gets Export or Import entry
public getEntry ( int index ) : IEntry
index int unreal index
return IEntry

getMetadataString() public method

public getMetadataString ( ) : string
return string

getName() public method

public getName ( int index ) : string
index int
return string

getObjectClass() public method

public getObjectClass ( int index ) : string
index int
return string

getObjectName() public method

public getObjectName ( int index ) : string
index int
return string

isExport() public method

public isExport ( int index ) : bool
index int
return bool

isImport() public method

public isImport ( int index ) : bool
index int
return bool

isName() public method

public isName ( int index ) : bool
index int
return bool

save() public method

save PCC to same file by reconstruction if possible, append if not
public save ( ) : void
return void

save() public method

save PCC by reconstruction if possible, append if not
public save ( string path ) : void
path string full path + file name.
return void

saveByReconstructing() public method

save PCCObject to file by reconstruction from data
public saveByReconstructing ( string path ) : void
path string full path + file name.
return void

Property Details

Loaded public_oe property

public bool Loaded
return bool

bDLCStored public_oe property

public bool bDLCStored
return bool

header public_oe property

public byte[] header
return byte[]