C# 클래스 Nexus.Client.Games.Gamebryo.Tools.TESsnip.TesPlugin

Encapsulates interacting with a TES plugin.
상속: BaseRecord
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Records List

공개 메소드들

메소드 설명
AddRecord ( BaseRecord br ) : void

Adds a record to the plugin.

Clone ( ) : BaseRecord

CLones the plugin.

This method is not implemented.

ContainsFormId ( UInt32 p_uintFormId ) : bool

Determines if the plugin contains the given form id.

DeleteRecord ( BaseRecord br ) : void

Deletes a record from the plugin.

GetDesc ( ) : string

Gets the plugin's decription.

GetIsEsm ( string FilePath ) : bool

Determines if the specified file is a master file.

GetMaster ( Int32 p_intIndex ) : string

Gets the master of the plugin at the given index.

GetMasterIndex ( string p_strPluginName ) : Int32

Gets the index of the specified master.

Save ( ) : byte[]

Save any changes made to the plugin.

TesPlugin ( ) : System

The default constructor.

TesPlugin ( byte data, string name ) : System

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

비공개 메소드들

메소드 설명
ContainsFormId ( uint p_uintFormId, List p_lstRecords ) : bool

Searched the given records for the given form id.

GetIDs ( bool lower ) : List

Gets a list of the form ids in the plugin.

LoadPlugin ( BinaryReader br, bool headerOnly ) : void

Loads the plugin from the given reader, optionally loading just the header.

Save ( string FilePath ) : void

Saves any changes made to the plugin to the specified file.

If the exists it is overwritten, but the last modified time is maintained.

SaveData ( BinaryWriter bw ) : void

Save the plugin data to the given writer.

TesPlugin ( string FilePath, bool headerOnly ) : System

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

메소드 상세

AddRecord() 공개 메소드

Adds a record to the plugin.
Thrown if the type of the given record /// cannot be added to the plugin.
public AddRecord ( BaseRecord br ) : void
br BaseRecord The record to add.
리턴 void

Clone() 공개 메소드

CLones the plugin.
This method is not implemented.
Thrown always.
public Clone ( ) : BaseRecord
리턴 BaseRecord

ContainsFormId() 공개 메소드

Determines if the plugin contains the given form id.
public ContainsFormId ( UInt32 p_uintFormId ) : bool
p_uintFormId System.UInt32 The form id to be searched for in the plugin.
리턴 bool

DeleteRecord() 공개 메소드

Deletes a record from the plugin.
public DeleteRecord ( BaseRecord br ) : void
br BaseRecord The record to delete.
리턴 void

GetDesc() 공개 메소드

Gets the plugin's decription.
public GetDesc ( ) : string
리턴 string

GetIsEsm() 공개 정적인 메소드

Determines if the specified file is a master file.
public static GetIsEsm ( string FilePath ) : bool
FilePath string The path to the file for which it is to be determined if it is a master file.
리턴 bool

GetMaster() 공개 메소드

Gets the master of the plugin at the given index.
public GetMaster ( Int32 p_intIndex ) : string
p_intIndex System.Int32 The index of the master to return.
리턴 string

GetMasterIndex() 공개 메소드

Gets the index of the specified master.
public GetMasterIndex ( string p_strPluginName ) : Int32
p_strPluginName string The name of the master file whose index in the master list of this pugin /// is to be returned.
리턴 System.Int32

Save() 공개 메소드

Save any changes made to the plugin.
public Save ( ) : byte[]
리턴 byte[]

TesPlugin() 공개 메소드

The default constructor.
public TesPlugin ( ) : System
리턴 System

TesPlugin() 공개 메소드

A simple constructor that initializes the object with the given data.
public TesPlugin ( byte data, string name ) : System
data byte The plugin data.
name string The name of the plugin.
리턴 System

프로퍼티 상세

Records 공개적으로 프로퍼티

Gets the records in the plugin file.
public List Records
리턴 List