Table of Contents

Class KeyValuesOrNTRO

Namespace
ValveResourceFormat.ResourceTypes
Assembly
ValveResourceFormat.dll

Block that can contain either ValveResourceFormat.Serialization.KeyValues.KVObject or ValveResourceFormat.ResourceTypes.NTRO data.

public class KeyValuesOrNTRO : Block

Inheritance

Derived

Inherited Members

Extension Methods

Constructors

KeyValuesOrNTRO()

Initializes a new instance of the ValveResourceFormat.ResourceTypes.KeyValuesOrNTRO class.

public KeyValuesOrNTRO()

KeyValuesOrNTRO(BlockType, string)

Initializes a new instance of the ValveResourceFormat.ResourceTypes.KeyValuesOrNTRO class with a specific block type and introspection struct name.

public KeyValuesOrNTRO(BlockType type, string introspectionStructName)

Parameters

type BlockType

The block type.

introspectionStructName string

The introspection struct name for ValveResourceFormat.ResourceTypes.NTRO parsing.

Properties

Data

Gets the parsed data as a ValveResourceFormat.Serialization.KeyValues.KVObject.

public KVObject Data { get; }

Property Value

KVObject

Type

Gets the block type.

public override BlockType Type { get; }

Property Value

BlockType

Methods

Read(BinaryReader)

Reads the block data from a binary reader.

public override void Read(BinaryReader reader)

Parameters

reader BinaryReader

The binary reader to read from.

Serialize(Stream)

Writes the binary representation of the object to Stream.

public override void Serialize(Stream stream)

Parameters

stream Stream

Stream.

WriteText(IndentedTextWriter)

Writes the correct text dump of the object to IndentedTextWriter.

public override void WriteText(IndentedTextWriter writer)

Parameters

writer IndentedTextWriter

IndentedTextWriter.

Remarks

Writes the data as KV3 text format, regardless of the backing data source.