Class EcsId
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
Atom
A local integer that identifies this type.
public int Atom { get; }
Property Value
Guid
Globally unique identifier for this type.
public Guid Guid { get; }
Property Value
GuidString
Globally unique identifier for this type, as a string.
public string GuidString { get; }
Property Value
Name
The name of the type.
public string Name { get; }
Property Value
Type
.NET type handle for this type.
public Type Type { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetAliasOf(Type)
public ImmutableHashSet<EcsId>? GetAliasOf(Type type)
Parameters
type
Type
Returns
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
GetIdOf(Type)
public static EcsId GetIdOf(Type type)
Parameters
type
Type
Returns
TryGetAliasOf(Type, out ImmutableHashSet<EcsId>?)
public static bool TryGetAliasOf(Type type, out ImmutableHashSet<EcsId>? aliases)
Parameters
type
Typealiases
ImmutableHashSet<EcsId>
Returns
TryGetIdOf(Guid, out EcsId?)
public static bool TryGetIdOf(Guid guid, out EcsId? id)
Parameters
Returns
TryGetIdOf(int, out EcsId?)
public static bool TryGetIdOf(int atom, out EcsId? id)
Parameters
Returns
TryGetIdOf(Type, out EcsId?)
public static bool TryGetIdOf(Type type, out EcsId? id)
Parameters
Returns
Operators
explicit operator EcsId(Guid)
public static explicit operator EcsId(Guid guid)
Parameters
guid
Guid
Returns
explicit operator EcsId(int)
public static explicit operator EcsId(int atom)
Parameters
atom
int
Returns
implicit operator Guid(EcsId)
public static implicit operator Guid(EcsId id)
Parameters
id
EcsId
Returns
implicit operator int(EcsId)
public static implicit operator int(EcsId id)
Parameters
id
EcsId