Class KV3File
Namespace: ValveResourceFormat.Serialization.KeyValues
Assembly: ValveResourceFormat.dll
Represents a KeyValues3 file.
csharp
public class KV3FileInheritance
Constructors
KV3File(KVObject, KV3ID?, KV3ID?)
Initializes a new instance of the class.
csharp
public KV3File(KVObject root, KV3ID? encoding = null, KV3ID? format = null)Parameters
root KVObject
encoding KV3ID?
format KV3ID?
Properties
Encoding
Gets the encoding identifier.
csharp
public KV3ID Encoding { get; }Property Value
Format
Gets the format identifier.
csharp
public KV3ID Format { get; }Property Value
Root
Gets the root object.
csharp
public KVObject Root { get; }Property Value
Methods
ToString()
Returns a string that represents the current object.
csharp
public override string ToString()Returns
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.
csharp
public void WriteText(IndentedTextWriter writer)Parameters
writer IndentedTextWriter

