C# Класс KFreonLib.PCCObjects.ME3PCCObject

Наследование: IPCCObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DataStream System.IO.MemoryStream
Loaded bool
NumChunks int
header byte[]
listsStream System.IO.MemoryStream

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Описание методов

AddName() публичный Метод

public AddName ( string newName ) : int
newName string
Результат int

CreateTexture2D() публичный Метод

public CreateTexture2D ( int expID, string pathBIOGame, uint hash ) : Textures.ITexture2D
expID int
pathBIOGame string
hash uint
Результат Textures.ITexture2D

Decompressor() публичный Метод

public Decompressor ( uint offset, int length ) : byte[]
offset uint
length int
Результат byte[]

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

DumpPCC() публичный Метод

public DumpPCC ( string path ) : void
path string
Результат void

FindExp() публичный Метод

public FindExp ( string name ) : int
name string
Результат int

FindExp() публичный Метод

public FindExp ( string name, string className ) : int
name string
className string
Результат int

FollowLink() публичный Метод

public FollowLink ( int Link ) : string
Link int
Результат string

GetClass() публичный Метод

public GetClass ( int Index ) : string
Index int
Результат string

GetName() публичный Метод

public GetName ( int Index ) : string
Index int
Результат string

ME3PCCObject() публичный Метод

public ME3PCCObject ( ) : System
Результат System

ME3PCCObject() публичный Метод

public ME3PCCObject ( string filePath, MemoryStream stream, bool TablesOnly = false ) : System
filePath string
stream System.IO.MemoryStream
TablesOnly bool
Результат System

ME3PCCObject() публичный Метод

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
Результат System

ME3PCCObjectHelper() публичный Метод

public ME3PCCObjectHelper ( MemoryStream tempStream, string filePath, bool TablesOnly ) : void
tempStream System.IO.MemoryStream
filePath string
TablesOnly bool
Результат void

SaveToFile() публичный Метод

public SaveToFile ( string path ) : void
path string
Результат void

addExport() публичный Метод

public addExport ( IExportEntry exportEntry ) : void
exportEntry IExportEntry
Результат void

addName() публичный Метод

public addName ( string name ) : void
name string
Результат void

addName2() публичный Метод

public addName2 ( string name ) : int
name string
Результат int

findName() публичный Метод

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
Результат int

getClassName() публичный Метод

public getClassName ( int index ) : string
index int
Результат string

getNameEntry() публичный Метод

public getNameEntry ( int index ) : string
index int
Результат string

getObjectClass() публичный Метод

public getObjectClass ( int index ) : string
index int
Результат string

getObjectName() публичный Метод

public getObjectName ( int index ) : string
index int
Результат string

isExport() публичный Метод

public isExport ( int index ) : bool
index int
Результат bool

isImport() публичный Метод

public isImport ( int index ) : bool
index int
Результат bool

isName() публичный Метод

public isName ( int index ) : bool
index int
Результат bool

saveToCprFile() публичный Метод

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.
Результат void

saveToFile() публичный Метод

public saveToFile ( bool saveCompress ) : void
saveCompress bool
Результат void

saveToFile() публичный Метод

save ME3PCCObject to file.
public saveToFile ( string newFileName = null, bool WriteToMemoryStream = false ) : void
newFileName string set full path + file name.
WriteToMemoryStream bool
Результат void

Описание свойств

DataStream публичное свойство

public MemoryStream,System.IO DataStream
Результат System.IO.MemoryStream

Loaded публичное свойство

public bool Loaded
Результат bool

NumChunks публичное свойство

public int NumChunks
Результат int

header публичное свойство

public byte[] header
Результат byte[]

listsStream публичное свойство

public MemoryStream,System.IO listsStream
Результат System.IO.MemoryStream