Table of Contents

Class TuningSemanticChange

Namespace
LlamaLogic.TuningArchive
Assembly
LlamaLogic.TuningArchive.dll

Represents an element that differs between two versions of a tuning document

public sealed record TuningSemanticChange : IEquatable<TuningSemanticChange>
Inheritance
TuningSemanticChange
Implements
Inherited Members

Constructors

TuningSemanticChange(TuningSemanticChangeKind, string, string?, string?, int, int)

Represents an element that differs between two versions of a tuning document

public TuningSemanticChange(TuningSemanticChangeKind Kind, string Path, string? OldValue, string? NewValue, int OldLine, int NewLine)

Parameters

Kind TuningSemanticChangeKind

How the element differs

Path string

The path of the element from the root, such as loot_list[2].stat (list indices are those of the newer version, except for removed elements)

OldValue string

The element's value in the older version (the XML of the element, on one line, if it has children), if it was there

NewValue string

The element's value in the newer version (the XML of the element, on one line, if it has children), if it is there

OldLine int

The 1-based line of the element in the older version's canonical text, or 0 if it was not there

NewLine int

The 1-based line of the element in the newer version's canonical text, or 0 if it is not there

Properties

Kind

How the element differs

public TuningSemanticChangeKind Kind { get; init; }

Property Value

TuningSemanticChangeKind

NewLine

The 1-based line of the element in the newer version's canonical text, or 0 if it is not there

public int NewLine { get; init; }

Property Value

int

NewValue

The element's value in the newer version (the XML of the element, on one line, if it has children), if it is there

public string? NewValue { get; init; }

Property Value

string

OldLine

The 1-based line of the element in the older version's canonical text, or 0 if it was not there

public int OldLine { get; init; }

Property Value

int

OldValue

The element's value in the older version (the XML of the element, on one line, if it has children), if it was there

public string? OldValue { get; init; }

Property Value

string

Path

The path of the element from the root, such as loot_list[2].stat (list indices are those of the newer version, except for removed elements)

public string Path { get; init; }

Property Value

string