Table of Contents

Class ArchetypeSetMigrationReport

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

One archetype whose component set the last open migrated (#1394): its existing entities re-placed into the new cluster geometry, every surviving component carried across by name, every added one absent. Read through LastOpenArchetypeSetMigrations.

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

Constructors

ArchetypeSetMigrationReport(string, int, int, string, int, double)

One archetype whose component set the last open migrated (#1394): its existing entities re-placed into the new cluster geometry, every surviving component carried across by name, every added one absent. Read through LastOpenArchetypeSetMigrations.

public ArchetypeSetMigrationReport(string ArchetypeName, int FromRevision, int ToRevision, string Changes, int EntitiesMigrated, double ElapsedMilliseconds)

Parameters

ArchetypeName string

The archetype's durable name.

FromRevision int

The revision the archetype was stored at.

ToRevision int

The revision this build declares.

Changes string

What changed, one line: +Gear at slot 2; Vitals 2->3.

EntitiesMigrated int

The entities re-placed.

ElapsedMilliseconds double

Wall-clock time of the re-placement and of the rebuilds over it (HEADs, indexes, spatial layer).

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.

public string Changes { get; init; }

Property Value

string

ElapsedMilliseconds

Wall-clock time of the re-placement and of the rebuilds over it (HEADs, indexes, spatial layer).

public double ElapsedMilliseconds { get; init; }

Property Value

double

EntitiesMigrated

The entities re-placed.

public int EntitiesMigrated { get; init; }

Property Value

int

FromRevision

The revision the archetype was stored at.

public int FromRevision { get; init; }

Property Value

int

ToRevision

The revision this build declares.

public int ToRevision { get; init; }

Property Value

int

Methods

Deconstruct(out string, out int, out int, out string, out int, out double)

public void Deconstruct(out string ArchetypeName, out int FromRevision, out int ToRevision, out string Changes, out int EntitiesMigrated, out double ElapsedMilliseconds)

Parameters

ArchetypeName string
FromRevision int
ToRevision int
Changes string
EntitiesMigrated int
ElapsedMilliseconds double

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ArchetypeSetMigrationReport?)

public bool Equals(ArchetypeSetMigrationReport? other)

Parameters

other ArchetypeSetMigrationReport

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ArchetypeSetMigrationReport?, ArchetypeSetMigrationReport?)

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

Parameters

left ArchetypeSetMigrationReport
right ArchetypeSetMigrationReport

Returns

bool

operator !=(ArchetypeSetMigrationReport?, ArchetypeSetMigrationReport?)

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

Parameters

left ArchetypeSetMigrationReport
right ArchetypeSetMigrationReport

Returns

bool