Table of Contents

Class ArchetypeSetChange

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

ArchetypeName string

The archetype's durable name.

FromRevision int

The revision the archetype is stored at.

ToRevision int

The revision this build declares.

Kind ArchetypeSetChangeKind

What an open under Apply would do.

Changes string

What 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

string

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

string

FromRevision

The revision the archetype is stored at.

public int FromRevision { get; init; }

Property Value

int

Kind

What an open under Apply would do.

public ArchetypeSetChangeKind Kind { get; init; }

Property Value

ArchetypeSetChangeKind

ToRevision

The revision this build declares.

public int ToRevision { get; init; }

Property Value

int

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

ArchetypeName string
FromRevision int
ToRevision int
Kind ArchetypeSetChangeKind
Changes string

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ArchetypeSetChange?)

public bool Equals(ArchetypeSetChange? other)

Parameters

other ArchetypeSetChange

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ArchetypeSetChange?, ArchetypeSetChange?)

public static bool operator ==(ArchetypeSetChange? left, ArchetypeSetChange? right)

Parameters

left ArchetypeSetChange
right ArchetypeSetChange

Returns

bool

operator !=(ArchetypeSetChange?, ArchetypeSetChange?)

public static bool operator !=(ArchetypeSetChange? left, ArchetypeSetChange? right)

Parameters

left ArchetypeSetChange
right ArchetypeSetChange

Returns

bool