Table of Contents

Class EcsId

Namespace
ReFuel.Ecs
Assembly
ReFuel.dll

ID lookup for ECS components.

public class EcsId
Inheritance
EcsId
Derived
Inherited Members

Constructors

EcsId()

protected EcsId()

Properties

Aliases

The aliases of this type, if any.

public ImmutableHashSet<EcsId> Aliases { get; }

Property Value

ImmutableHashSet<EcsId>

Atom

A local integer that identifies this type.

public int Atom { get; }

Property Value

int

Guid

Globally unique identifier for this type.

public Guid Guid { get; }

Property Value

Guid

GuidString

Globally unique identifier for this type, as a string.

public string GuidString { get; }

Property Value

string

Name

The name of the type.

public string Name { get; }

Property Value

string

Type

.NET type handle for this type.

public Type Type { get; }

Property Value

Type

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetAliasOf(Type)

public ImmutableHashSet<EcsId>? GetAliasOf(Type type)

Parameters

type Type

Returns

ImmutableHashSet<EcsId>

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetIdOf(int)

public static EcsId GetIdOf(int atom)

Parameters

atom int

Returns

EcsId

GetIdOf(Type)

public static EcsId GetIdOf(Type type)

Parameters

type Type

Returns

EcsId

TryGetAliasOf(Type, out ImmutableHashSet<EcsId>?)

public static bool TryGetAliasOf(Type type, out ImmutableHashSet<EcsId>? aliases)

Parameters

type Type
aliases ImmutableHashSet<EcsId>

Returns

bool

TryGetIdOf(Guid, out EcsId?)

public static bool TryGetIdOf(Guid guid, out EcsId? id)

Parameters

guid Guid
id EcsId

Returns

bool

TryGetIdOf(int, out EcsId?)

public static bool TryGetIdOf(int atom, out EcsId? id)

Parameters

atom int
id EcsId

Returns

bool

TryGetIdOf(Type, out EcsId?)

public static bool TryGetIdOf(Type type, out EcsId? id)

Parameters

type Type
id EcsId

Returns

bool

Operators

explicit operator EcsId(Guid)

public static explicit operator EcsId(Guid guid)

Parameters

guid Guid

Returns

EcsId

explicit operator EcsId(int)

public static explicit operator EcsId(int atom)

Parameters

atom int

Returns

EcsId

implicit operator Guid(EcsId)

public static implicit operator Guid(EcsId id)

Parameters

id EcsId

Returns

Guid

implicit operator int(EcsId)

public static implicit operator int(EcsId id)

Parameters

id EcsId

Returns

int