Table of Contents

Struct ArchetypeStat

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

One archetype's live entity count.

public readonly struct ArchetypeStat : IEquatable<ArchetypeStat>
Implements
Inherited Members

Constructors

ArchetypeStat(string, long)

One archetype's live entity count.

public ArchetypeStat(string Name, long Entities)

Parameters

Name string

The archetype's name.

Entities long

Live entities at the moment of the read.

Properties

Entities

Live entities at the moment of the read.

public long Entities { get; init; }

Property Value

long

Name

The archetype's name.

public string Name { get; init; }

Property Value

string

Methods

Deconstruct(out string, out long)

public void Deconstruct(out string Name, out long Entities)

Parameters

Name string
Entities long

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(ArchetypeStat)

public bool Equals(ArchetypeStat other)

Parameters

other ArchetypeStat

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ArchetypeStat, ArchetypeStat)

public static bool operator ==(ArchetypeStat left, ArchetypeStat right)

Parameters

left ArchetypeStat
right ArchetypeStat

Returns

bool

operator !=(ArchetypeStat, ArchetypeStat)

public static bool operator !=(ArchetypeStat left, ArchetypeStat right)

Parameters

left ArchetypeStat
right ArchetypeStat

Returns

bool