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

Encapsulates insteracting with sub-records.
Наследование: BaseRecord
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddRecord ( BaseRecord br ) : void

Adds the given sub-record to the record.

Clone ( ) : BaseRecord

Clones the record.

DeleteRecord ( BaseRecord br ) : void

Deletes the specified sub-record from the record.

GetData ( ) : byte[]

Gets the sub-record's data.

GetDesc ( ) : string

Gets the sub-record's description.

GetHexData ( ) : string

Gets the sub-record's data as a hex number.

GetStrData ( ) : string

Gets the sub-record's data as a string.

SetData ( byte data ) : void

Sets the sub-record's data.

SetStrData ( string s, bool nullTerminate ) : void

Sets the sub-record's data tot he given string.

SubRecord ( ) : System

The default constructor.

Приватные методы

Метод Описание
GetFormattedData ( SubrecordStructure ss, dFormIDLookupI formIDLookup ) : string
GetIDs ( bool lower ) : List

Gets the ids of the sub-records in the record.

GetReadonlyData ( ) : byte[]
SaveData ( BinaryWriter bw ) : void
SubRecord ( SubRecord sr ) : System

The copy constructor.

SubRecord ( string name, BinaryReader br, uint size ) : System

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

Описание методов

AddRecord() публичный Метод

Adds the given sub-record to the record.
public AddRecord ( BaseRecord br ) : void
br BaseRecord The record to add.
Результат void

Clone() публичный Метод

Clones the record.
public Clone ( ) : BaseRecord
Результат BaseRecord

DeleteRecord() публичный Метод

Deletes the specified sub-record from the record.
public DeleteRecord ( BaseRecord br ) : void
br BaseRecord The record to delete.
Результат void

GetData() публичный Метод

Gets the sub-record's data.
public GetData ( ) : byte[]
Результат byte[]

GetDesc() публичный Метод

Gets the sub-record's description.
public GetDesc ( ) : string
Результат string

GetHexData() публичный Метод

Gets the sub-record's data as a hex number.
public GetHexData ( ) : string
Результат string

GetStrData() публичный Метод

Gets the sub-record's data as a string.
public GetStrData ( ) : string
Результат string

SetData() публичный Метод

Sets the sub-record's data.
public SetData ( byte data ) : void
data byte The new data.
Результат void

SetStrData() публичный Метод

Sets the sub-record's data tot he given string.
public SetStrData ( string s, bool nullTerminate ) : void
s string The string to which to set the sub-record's data.
nullTerminate bool Whether to nul-terminate the given string.
Результат void

SubRecord() публичный Метод

The default constructor.
public SubRecord ( ) : System
Результат System