Table of Contents

Class KV3File

Namespace
ValveResourceFormat.Serialization.KeyValues
Assembly
ValveResourceFormat.dll

Represents a KeyValues3 file.

public class KV3File

Inheritance

Inherited Members

Constructors

KV3File(KVObject, KV3ID?, KV3ID?)

Initializes a new instance of the ValveResourceFormat.Serialization.KeyValues.KV3File class.

public KV3File(KVObject root, KV3ID? encoding = null, KV3ID? format = null)

Parameters

root KVObject
encoding KV3ID?
format KV3ID?

Properties

Encoding

Gets the encoding identifier.

public KV3ID Encoding { get; }

Property Value

KV3ID

Format

Gets the format identifier.

public KV3ID Format { get; }

Property Value

KV3ID

Root

Gets the root object.

public KVObject Root { get; }

Property Value

KVObject

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Remarks

Returns the KV3 file as formatted text with encoding and format comments.

WriteText(IndentedTextWriter)

Writes the KV3 file as text.

public void WriteText(IndentedTextWriter writer)

Parameters

writer IndentedTextWriter