Свойство | Тип | Описание | |
---|---|---|---|
ConvertToUint32 | uint | ||
GetEntryIndex | int | ||
OnFileWrited | void | ||
ReadFile | Stream | ||
WriteMapFile | bool | ||
_WriteStream | bool |
Метод | Описание | |
---|---|---|
Close ( ) : void |
Closes game archive
|
|
Dispose ( ) : void |
Object dispose method
|
|
FileHash ( string filePath ) : uint |
Calculates file hash (internal file ID). Is is hash function over the game path (not the file itself).
|
|
FileSystemManager ( ) : System |
Base constructor
|
|
FileSystemManager ( |
Constructon with UI Dispatcher to invoke the events.
|
|
Initialize ( ) : void |
API initialization method
|
|
Initialize ( ILogManager logManager ) : void |
Initializes with specified ILogManager for logging
|
|
IsFileLocked ( string file ) : bool |
Checks access to file
|
|
Open ( FileAccess access, int archiveHeader, string headerFile, string packageFile ) : bool |
Opens game archives
|
|
ReadFile ( string name ) : Stream |
Reads file by name
|
|
ReadFile ( uint id ) : Stream |
Reads file by id
|
|
WriteDirectory ( string path, bool deleteOnComplete ) : bool |
Writes the full directory content into game archive
|
|
WriteFile ( string sourceFile, string destination ) : bool |
Writes file to archive.
|
|
WriteStream ( Stream sourceStream, string destination ) : bool |
Writes stream to archive.
|
|
WriteStream ( Stream sourceStream, uint entryId ) : bool |
Writes stream to archive.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Object dispose method
|
Метод | Описание | |
---|---|---|
ConvertToUint32 ( long l ) : uint |
Convert long to uint
|
|
GetEntryIndex ( uint fileId ) : int |
Get internal entry index
|
|
OnFileWrited ( int fileNum, int fileCount ) : void | ||
ReadFile ( int entryIndex ) : Stream |
Reads file by entry index
|
|
WriteMapFile ( ) : bool |
Writes map file (header file)
|
|
_WriteStream ( Stream SourceStream, uint entryId ) : bool |
Writes stream to archive.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True for managed resources |
Результат | void |
public FileHash ( string filePath ) : uint | ||
filePath | string | File path |
Результат | uint |
public FileSystemManager ( |
||
OwnerDispatcher | UI Dispatcher | |
Результат | System |
public Initialize ( ILogManager logManager ) : void | ||
logManager | ILogManager | The |
Результат | void |
public static IsFileLocked ( string file ) : bool | ||
file | string | Full path to file |
Результат | bool |
public Open ( FileAccess access, int archiveHeader, string headerFile, string packageFile ) : bool | ||
access | FileAccess | File access mode. |
archiveHeader | int | Archives header number. Usually it is 16 for common game archive |
headerFile | string | Header file path |
packageFile | string | Packages file path |
Результат | bool |
public ReadFile ( string name ) : Stream | ||
name | string | File name |
Результат | Stream |
public WriteDirectory ( string path, bool deleteOnComplete ) : bool | ||
path | string | Directory path |
deleteOnComplete | bool | Set True of you want delete this directory awter write. |
Результат | bool |
public WriteFile ( string sourceFile, string destination ) : bool | ||
sourceFile | string | Source file (physical on the disk) |
destination | string | Destination file (internal file path inside archive) |
Результат | bool |
public WriteStream ( Stream sourceStream, string destination ) : bool | ||
sourceStream | Stream | Source stream |
destination | string | Destination file (internal file path inside archive) |
Результат | bool |
public WriteStream ( Stream sourceStream, uint entryId ) : bool | ||
sourceStream | Stream | Source stream |
entryId | uint | ID of destination file |
Результат | bool |