C# Class KFreonLib.PCCObjects.ME3PCCObject

Inheritance: IPCCObject
Mostra file Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
DataStream System.IO.MemoryStream
Loaded bool
NumChunks int
header byte[]
listsStream System.IO.MemoryStream

Private Properties

Property Type Description

Public Methods

Method Description
AddName ( string newName ) : int
CreateTexture2D ( int expID, string pathBIOGame, uint hash ) : Textures.ITexture2D
Decompressor ( uint offset, int length ) : byte[]
Dispose ( ) : void
DumpPCC ( string path ) : void
FindExp ( string name ) : int
FindExp ( string name, string className ) : int
FollowLink ( int Link ) : string
GetClass ( int Index ) : string
GetName ( int Index ) : string
ME3PCCObject ( ) : System
ME3PCCObject ( string filePath, MemoryStream stream, bool TablesOnly = false ) : System
ME3PCCObject ( string filePath, bool TablesOnly = false ) : System

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

ME3PCCObjectHelper ( MemoryStream tempStream, string filePath, bool TablesOnly ) : void
SaveToFile ( string path ) : void
addExport ( IExportEntry exportEntry ) : void
addName ( string name ) : void
addName2 ( string name ) : int
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
getNameEntry ( int index ) : string
getObjectClass ( int index ) : string
getObjectName ( int index ) : string
isExport ( int index ) : bool
isImport ( int index ) : bool
isName ( int index ) : bool
saveToCprFile ( string newFileName = null, bool saveCompress = false ) : void

save PCCObject to file.

saveToFile ( bool saveCompress ) : void
saveToFile ( string newFileName = null, bool WriteToMemoryStream = false ) : void

save ME3PCCObject to file.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

AddName() public method

public AddName ( string newName ) : int
newName string
return int

CreateTexture2D() public method

public CreateTexture2D ( int expID, string pathBIOGame, uint hash ) : Textures.ITexture2D
expID int
pathBIOGame string
hash uint
return Textures.ITexture2D

Decompressor() public method

public Decompressor ( uint offset, int length ) : byte[]
offset uint
length int
return byte[]

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DumpPCC() public method

public DumpPCC ( string path ) : void
path string
return void

FindExp() public method

public FindExp ( string name ) : int
name string
return int

FindExp() public method

public FindExp ( string name, string className ) : int
name string
className string
return int

FollowLink() public method

public FollowLink ( int Link ) : string
Link int
return string

GetClass() public method

public GetClass ( int Index ) : string
Index int
return string

GetName() public method

public GetName ( int Index ) : string
Index int
return string

ME3PCCObject() public method

public ME3PCCObject ( ) : System
return System

ME3PCCObject() public method

public ME3PCCObject ( string filePath, MemoryStream stream, bool TablesOnly = false ) : System
filePath string
stream System.IO.MemoryStream
TablesOnly bool
return System

ME3PCCObject() public method

ME3PCCObject class constructor. It also load namelist, importlist and exportinfo (not exportdata) from pcc file
public ME3PCCObject ( string filePath, bool TablesOnly = false ) : System
filePath string
TablesOnly bool
return System

ME3PCCObjectHelper() public method

public ME3PCCObjectHelper ( MemoryStream tempStream, string filePath, bool TablesOnly ) : void
tempStream System.IO.MemoryStream
filePath string
TablesOnly bool
return void

SaveToFile() public method

public SaveToFile ( string path ) : void
path string
return void

addExport() public method

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

addName() public method

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

addName2() public method

public addName2 ( string name ) : int
name string
return int

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

getNameEntry() public method

public getNameEntry ( 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

saveToCprFile() public method

save PCCObject to file.
public saveToCprFile ( string newFileName = null, bool saveCompress = false ) : void
newFileName string set full path + file name.
saveCompress bool set true if you want a zlib compressed pcc file.
return void

saveToFile() public method

public saveToFile ( bool saveCompress ) : void
saveCompress bool
return void

saveToFile() public method

save ME3PCCObject to file.
public saveToFile ( string newFileName = null, bool WriteToMemoryStream = false ) : void
newFileName string set full path + file name.
WriteToMemoryStream bool
return void

Property Details

DataStream public_oe property

public MemoryStream,System.IO DataStream
return System.IO.MemoryStream

Loaded public_oe property

public bool Loaded
return bool

NumChunks public_oe property

public int NumChunks
return int

header public_oe property

public byte[] header
return byte[]

listsStream public_oe property

public MemoryStream,System.IO listsStream
return System.IO.MemoryStream