C# Класс Nexus.Client.Games.Gamebryo.Tools.TESsnip.TesPlugin

Encapsulates interacting with a TES plugin.
Наследование: BaseRecord
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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