Class ArchetypeSetChange
How one archetype's stored row differs from this build's declaration (#1394): what an open under Refuse skipped instead of applying (RefusedArchetypeSetChanges), and what a dry run of the next open reports.
public sealed record ArchetypeSetChange : IEquatable<ArchetypeSetChange>
- Inheritance
-
ArchetypeSetChange
- Implements
- Inherited Members
Constructors
ArchetypeSetChange(string, int, int, ArchetypeSetChangeKind, string)
How one archetype's stored row differs from this build's declaration (#1394): what an open under Refuse skipped instead of applying (RefusedArchetypeSetChanges), and what a dry run of the next open reports.
public ArchetypeSetChange(string ArchetypeName, int FromRevision, int ToRevision, ArchetypeSetChangeKind Kind, string Changes)
Parameters
ArchetypeNamestringThe archetype's durable name.
FromRevisionintThe revision the archetype is stored at.
ToRevisionintThe revision this build declares.
KindArchetypeSetChangeKindWhat an open under Apply would do.
ChangesstringWhat changed, one line:
+Gear at slot 2; Vitals 2->3; empty for a metadata-only change; for Refused, the refusal's message.
Properties
ArchetypeName
The archetype's durable name.
public string ArchetypeName { get; init; }
Property Value
Changes
What changed, one line: +Gear at slot 2; Vitals 2->3; empty for a metadata-only change; for
Refused, the refusal's message.
public string Changes { get; init; }
Property Value
FromRevision
The revision the archetype is stored at.
public int FromRevision { get; init; }
Property Value
Kind
What an open under Apply would do.
public ArchetypeSetChangeKind Kind { get; init; }
Property Value
ToRevision
The revision this build declares.
public int ToRevision { get; init; }
Property Value
Methods
Deconstruct(out string, out int, out int, out ArchetypeSetChangeKind, out string)
public void Deconstruct(out string ArchetypeName, out int FromRevision, out int ToRevision, out ArchetypeSetChangeKind Kind, out string Changes)
Parameters
ArchetypeNamestringFromRevisionintToRevisionintKindArchetypeSetChangeKindChangesstring
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ArchetypeSetChange?)
public bool Equals(ArchetypeSetChange? other)
Parameters
otherArchetypeSetChange
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ArchetypeSetChange?, ArchetypeSetChange?)
public static bool operator ==(ArchetypeSetChange? left, ArchetypeSetChange? right)
Parameters
leftArchetypeSetChangerightArchetypeSetChange
Returns
operator !=(ArchetypeSetChange?, ArchetypeSetChange?)
public static bool operator !=(ArchetypeSetChange? left, ArchetypeSetChange? right)
Parameters
leftArchetypeSetChangerightArchetypeSetChange