C# Class Nexus.Client.Games.Gamebryo.Tools.TESsnip.BaseRecord

The base record type found in TES plugins.
ファイルを表示 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Properties

Property Type Description
Name string

Public Methods

Method Description
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.

GetDesc ( ) : string

Gets the description of the record.

Protected Methods

Method Description
CloseDecompressor ( ) : void

Closes teh decompressor.

Decompress ( BinaryReader br, int size, int outsize ) : BinaryReader

Decompressed the data in the given stream.

InitDecompressor ( ) : void

Initializes teh decompressor.

ReadRecName ( BinaryReader br ) : string

Reads the name of the given record.

WriteString ( BinaryWriter bw, string s ) : void

Writes a string to the given stream.

Private Methods

Method Description
GetIDs ( bool lower ) : List

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

SaveData ( BinaryWriter bw ) : void

Method Details

AddRecord() public abstract method

Adds the given sub-record to the record.
public abstract AddRecord ( BaseRecord br ) : void
br BaseRecord The record to add.
return void

Clone() public abstract method

Clones the record.
public abstract Clone ( ) : BaseRecord
return BaseRecord

CloseDecompressor() protected static method

Closes teh decompressor.
protected static CloseDecompressor ( ) : void
return void

Decompress() protected static method

Decompressed the data in the given stream.
protected static Decompress ( BinaryReader br, int size, int outsize ) : BinaryReader
br System.IO.BinaryReader The stream containing the compressed data.
size int The number of byte to decompress.
outsize int The sixe of the decrompressed data.
return System.IO.BinaryReader

DeleteRecord() public abstract method

Deletes the specified sub-record from the record.
public abstract DeleteRecord ( BaseRecord br ) : void
br BaseRecord The record to delete.
return void

GetDesc() public abstract method

Gets the description of the record.
public abstract GetDesc ( ) : string
return string

InitDecompressor() protected static method

Initializes teh decompressor.
protected static InitDecompressor ( ) : void
return void

ReadRecName() protected static method

Reads the name of the given record.
protected static ReadRecName ( BinaryReader br ) : string
br System.IO.BinaryReader The record whose name is to be read.
return string

WriteString() protected static method

Writes a string to the given stream.
protected static WriteString ( BinaryWriter bw, string s ) : void
bw System.IO.BinaryWriter The stream to which to write the string.
s string The string to write.
return void

Property Details

Name public_oe property

Gets the name of the record.
public string Name
return string