Struct EntityId
Represents an identifier of an entity.
public readonly struct EntityId : IEquatable<EntityId>
- Implements
- Inherited Members
Fields
Empty
An empty entity identifier.
public static readonly EntityId Empty
Field Value
Properties
IsEmpty
Gets a value indicating whether this handle is empty.
public bool IsEmpty { get; }
Property Value
Methods
Equals(EntityId)
public bool Equals(EntityId other)
Parameters
otherEntityId
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
NewEntityId()
Creates a fresh entity handle backed by a new Guid.
public static EntityId NewEntityId()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(EntityId, EntityId)
public static bool operator ==(EntityId left, EntityId right)
Parameters
Returns
operator false(EntityId)
Implements the operator false.
public static bool operator false(EntityId value)
Parameters
valueEntityId
Returns
implicit operator EntityId(Component)
public static implicit operator EntityId(Component component)
Parameters
componentComponent
Returns
implicit operator bool(EntityId)
Performs an implicit conversion from EntityId to bool.
Returns true if the specified value is not empty.
public static implicit operator bool(EntityId value)
Parameters
valueEntityId
Returns
operator !=(EntityId, EntityId)
public static bool operator !=(EntityId left, EntityId right)
Parameters
Returns
operator !(EntityId)
Implements the operator !.
public static bool operator !(EntityId value)
Parameters
valueEntityId
Returns
operator true(EntityId)
Implements the operator true.
public static bool operator true(EntityId value)
Parameters
valueEntityId