C# 클래스 Nexus.Client.Games.Gamebryo.Tools.Shader.SDPArchives

Encapsulates working with shader archive files.
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
EditShader ( int package, string name, byte newData, byte &oldData ) : bool

Edits the specified shader.

GetPath ( int package ) : string

Gets the path of the specified shader package.

GetShader ( int package, string shader ) : byte[]

Gets the specified shader's data.

RestoreShader ( int package, string name, byte data, uint crc ) : bool

Restores the specified shader to the given data.

SDPArchives ( IGameModeEnvironmentInfo p_gmiGameModeInfo, FileUtil p_futFileUtility ) : System

A simple constructor that initializes the object with the given values.

비공개 메소드들

메소드 설명
ReplaceShader ( string file, string shader, byte newdata, byte &OldData, uint crc ) : bool

Replaces the specified shader data.

메소드 상세

EditShader() 공개 메소드

Edits the specified shader.
public EditShader ( int package, string name, byte newData, byte &oldData ) : bool
package int The id of the package containing the shader to edit.
name string The name of the shader to edit.
newData byte The data with which to replaced the existing shader data.
oldData byte Returns the existing shader data.
리턴 bool

GetPath() 공개 메소드

Gets the path of the specified shader package.
public GetPath ( int package ) : string
package int The id of the package whose path is to be returned.
리턴 string

GetShader() 공개 메소드

Gets the specified shader's data.
public GetShader ( int package, string shader ) : byte[]
package int The id of the package containing the shader to retrieve.
shader string The name of the shader to retrieve.
리턴 byte[]

RestoreShader() 공개 메소드

Restores the specified shader to the given data.
public RestoreShader ( int package, string name, byte data, uint crc ) : bool
package int The id of the package containing the shader to restore.
name string The name of the shader to restore.
data byte The data with which to replaced the existing shader data.
crc uint The CRC of the new shader data. Used to verify the replacement; use 0 if no validation is desired.
리턴 bool

SDPArchives() 공개 메소드

A simple constructor that initializes the object with the given values.
public SDPArchives ( IGameModeEnvironmentInfo p_gmiGameModeInfo, FileUtil p_futFileUtility ) : System
p_gmiGameModeInfo IGameModeEnvironmentInfo The environment info of the current game mode.
p_futFileUtility Nexus.Client.Util.FileUtil The file utility class.
리턴 System