C# Class KFreonLib.PCCObjects.ME3PCCObject

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

Méthodes publiques

Свойство Type Description
DataStream System.IO.MemoryStream
Loaded bool
NumChunks int
header byte[]
listsStream System.IO.MemoryStream

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

AddName() public méthode

public AddName ( string newName ) : int
newName string
Résultat int

CreateTexture2D() public méthode

public CreateTexture2D ( int expID, string pathBIOGame, uint hash ) : Textures.ITexture2D
expID int
pathBIOGame string
hash uint
Résultat Textures.ITexture2D

Decompressor() public méthode

public Decompressor ( uint offset, int length ) : byte[]
offset uint
length int
Résultat byte[]

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DumpPCC() public méthode

public DumpPCC ( string path ) : void
path string
Résultat void

FindExp() public méthode

public FindExp ( string name ) : int
name string
Résultat int

FindExp() public méthode

public FindExp ( string name, string className ) : int
name string
className string
Résultat int

FollowLink() public méthode

public FollowLink ( int Link ) : string
Link int
Résultat string

GetClass() public méthode

public GetClass ( int Index ) : string
Index int
Résultat string

GetName() public méthode

public GetName ( int Index ) : string
Index int
Résultat string

ME3PCCObject() public méthode

public ME3PCCObject ( ) : System
Résultat System

ME3PCCObject() public méthode

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

ME3PCCObject() public méthode

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
Résultat System

ME3PCCObjectHelper() public méthode

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

SaveToFile() public méthode

public SaveToFile ( string path ) : void
path string
Résultat void

addExport() public méthode

public addExport ( IExportEntry exportEntry ) : void
exportEntry IExportEntry
Résultat void

addName() public méthode

public addName ( string name ) : void
name string
Résultat void

addName2() public méthode

public addName2 ( string name ) : int
name string
Résultat int

findName() public méthode

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
Résultat int

getClassName() public méthode

public getClassName ( int index ) : string
index int
Résultat string

getNameEntry() public méthode

public getNameEntry ( int index ) : string
index int
Résultat string

getObjectClass() public méthode

public getObjectClass ( int index ) : string
index int
Résultat string

getObjectName() public méthode

public getObjectName ( int index ) : string
index int
Résultat string

isExport() public méthode

public isExport ( int index ) : bool
index int
Résultat bool

isImport() public méthode

public isImport ( int index ) : bool
index int
Résultat bool

isName() public méthode

public isName ( int index ) : bool
index int
Résultat bool

saveToCprFile() public méthode

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.
Résultat void

saveToFile() public méthode

public saveToFile ( bool saveCompress ) : void
saveCompress bool
Résultat void

saveToFile() public méthode

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

Property Details

DataStream public_oe property

public MemoryStream,System.IO DataStream
Résultat System.IO.MemoryStream

Loaded public_oe property

public bool Loaded
Résultat bool

NumChunks public_oe property

public int NumChunks
Résultat int

header public_oe property

public byte[] header
Résultat byte[]

listsStream public_oe property

public MemoryStream,System.IO listsStream
Résultat System.IO.MemoryStream