Skip to content

Struct Entity

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

An ECS entity or component id. Its meaning is the world's; the registry only carries it.

public readonly record struct Entity : IEquatable<Entity>

Implements

IEquatable<Entity>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Entity(ulong)

An ECS entity or component id. Its meaning is the world's; the registry only carries it.

public Entity(ulong Id)

Parameters

Id ulong

Properties

Id

public ulong Id { get; init; }

Property Value

ulong

IsNull

public bool IsNull { get; }

Property Value

bool

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.