C# 클래스 AdvancedLauncher.SDK.Management.FileSystemManager

The DMO File System manager
상속: CrossDomainObject, IFileSystemManager
파일 보기 프로젝트 열기: GoldRenard/DMOAdvancedLauncher

Private Properties

프로퍼티 타입 설명
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 ( Dispatcher OwnerDispatcher ) : System

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.

메소드 상세

Close() 공개 메소드

Closes game archive
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

Object dispose method
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Object dispose method
protected Dispose ( bool disposing ) : void
disposing bool True for managed resources
리턴 void

FileHash() 공개 메소드

Calculates file hash (internal file ID). Is is hash function over the game path (not the file itself).
public FileHash ( string filePath ) : uint
filePath string File path
리턴 uint

FileSystemManager() 공개 메소드

Base constructor
public FileSystemManager ( ) : System
리턴 System

FileSystemManager() 공개 메소드

Constructon with UI Dispatcher to invoke the events.
public FileSystemManager ( Dispatcher OwnerDispatcher ) : System
OwnerDispatcher System.Windows.Threading.Dispatcher UI Dispatcher
리턴 System

Initialize() 공개 메소드

API initialization method
public Initialize ( ) : void
리턴 void

Initialize() 공개 메소드

Initializes with specified ILogManager for logging
public Initialize ( ILogManager logManager ) : void
logManager ILogManager The interface
리턴 void

IsFileLocked() 공개 정적인 메소드

Checks access to file
public static IsFileLocked ( string file ) : bool
file string Full path to file
리턴 bool

Open() 공개 메소드

Opens game archives
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

ReadFile() 공개 메소드

Reads file by name
public ReadFile ( string name ) : Stream
name string File name
리턴 Stream

ReadFile() 공개 메소드

Reads file by id
public ReadFile ( uint id ) : Stream
id uint File id
리턴 Stream

WriteDirectory() 공개 메소드

Writes the full directory content into game archive
public WriteDirectory ( string path, bool deleteOnComplete ) : bool
path string Directory path
deleteOnComplete bool Set True of you want delete this directory awter write.
리턴 bool

WriteFile() 공개 메소드

Writes file to archive.
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

WriteStream() 공개 메소드

Writes stream to archive.
public WriteStream ( Stream sourceStream, string destination ) : bool
sourceStream Stream Source stream
destination string Destination file (internal file path inside archive)
리턴 bool

WriteStream() 공개 메소드

Writes stream to archive.
public WriteStream ( Stream sourceStream, uint entryId ) : bool
sourceStream Stream Source stream
entryId uint ID of destination file
리턴 bool