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
KindTuningSemanticChangeKindHow the element differs
PathstringThe 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)OldValuestringThe element's value in the older version (the XML of the element, on one line, if it has children), if it was there
NewValuestringThe element's value in the newer version (the XML of the element, on one line, if it has children), if it is there
OldLineintThe 1-based line of the element in the older version's canonical text, or 0 if it was not there
NewLineintThe 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
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
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
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
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
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; }