Class KV3File
- 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
Properties
Encoding
Gets the encoding identifier.
public KV3ID Encoding { get; }
Property Value
Format
Gets the format identifier.
public KV3ID Format { get; }
Property Value
Root
Gets the root object.
public KVObject Root { get; }
Property Value
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