C# 클래스 HaloOnlineLib.Resources.ResourceDataManager

Manages resource caches and extracting/injecting resource data.
파일 보기 프로젝트 열기: dark-c0de/DarkConvert 1 사용 예제들

공개 메소드들

메소드 설명
Extract ( ResourceReference resource, Stream outStream ) : void

Extracts the raw data for a resource.

LoadCache ( ResourceLocation location, string path ) : void

Loads a resource cache from a file.

LoadCachesFromDirectory ( string directory ) : void

Loads resource caches from a directory using their default filenames.

Replace ( ResourceReference resource, Stream dataStream ) : void

Replaces the raw data for a resource.

비공개 메소드들

메소드 설명
GetCache ( ResourceReference resource ) : LoadedCache

메소드 상세

Extract() 공개 메소드

Extracts the raw data for a resource.
Thrown if the output stream is not open for writing. Thrown if the file containing the resource has not been loaded.
public Extract ( ResourceReference resource, Stream outStream ) : void
resource ResourceReference The resource.
outStream Stream The stream to write the extracted data to.
리턴 void

LoadCache() 공개 메소드

Loads a resource cache from a file.
Thrown if the cache is already loaded.
public LoadCache ( ResourceLocation location, string path ) : void
location ResourceLocation The resource cache type.
path string The path to the .dat file to read.
리턴 void

LoadCachesFromDirectory() 공개 메소드

Loads resource caches from a directory using their default filenames.
public LoadCachesFromDirectory ( string directory ) : void
directory string The directory to find files in.
리턴 void

Replace() 공개 메소드

Replaces the raw data for a resource.
Thrown if the input stream is not open for reading.
public Replace ( ResourceReference resource, Stream dataStream ) : void
resource ResourceReference The resource whose data should be replaced. On success, the reference will be adjusted to account for the new data.
dataStream Stream The stream to read the new data from.
리턴 void