Table of Contents

Class TuningNode

Namespace
LlamaLogic.TuningArchive
Assembly
LlamaLogic.TuningArchive.dll

Represents an element of a tuning document, as understood through its tuning description

public sealed class TuningNode
Inheritance
TuningNode
Inherited Members

Properties

Description

Gets the tunable description of the element, if one was found

public TunableDescription? Description { get; }

Property Value

TunableDescription

ElementName

Gets the name of the element (such as T, L, U, V or E)

public string ElementName { get; }

Property Value

string

Enum

Gets the enumeration of the value, if ValueKind is Enum and it was found

public TuningDescriptionClass? Enum { get; }

Property Value

TuningDescriptionClass

EnumValue

Gets the numeric value of the enumeration member, if it was found

public long? EnumValue { get; }

Property Value

long?

Line

Gets the 1-based line on which the element starts in the canonical text

public int Line { get; }

Property Value

int

Members

Gets the tunables the tuning descriptions declare for the element, in the order they declare them, if it is a tuple; otherwise, an empty list

public IReadOnlyList<TunableDescription> Members { get; }

Property Value

IReadOnlyList<TunableDescription>

Option

Gets the option the element chooses (its t attribute), if it is a variant

public string? Option { get; }

Property Value

string

Path

Gets the path of the element from the root, such as loot_list[2].stat

public string Path { get; }

Property Value

string

ReferenceInstance

Gets the instance the value refers to, if ValueKind is Reference and it is numeric

public ulong? ReferenceInstance { get; }

Property Value

ulong?

ReferenceName

Gets the name the value refers to, if ValueKind is Reference and it is not numeric

public string? ReferenceName { get; }

Property Value

string

ReferenceType

Gets the resource type the value refers to, if ValueKind is Reference

public ResourceType? ReferenceType { get; }

Property Value

ResourceType?

ReferenceTypeName

Gets the name of the type the value refers to (as the tuning description names it, such as buff), if ValueKind is Reference

public string? ReferenceTypeName { get; }

Property Value

string

ResourceKey

Gets the resource key of the value, if ValueKind is ResourceKey

public ResourceKey? ResourceKey { get; }

Property Value

ResourceKey?

StringKey

Gets the key of the localized string, if ValueKind is LocalizedString

public uint? StringKey { get; }

Property Value

uint?

Value

Gets the text value of the element, if it has one

public string? Value { get; }

Property Value

string

ValueEndColumn

Gets the 1-based column at which the element's value ends (exclusive), or 0 if the value is not on Line

public int ValueEndColumn { get; }

Property Value

int

ValueKind

Gets what the value of the element means

public TuningValueKind ValueKind { get; }

Property Value

TuningValueKind

ValueStartColumn

Gets the 1-based column at which the element's value starts, or 0 if the value is not on Line

public int ValueStartColumn { get; }

Property Value

int