#include <EntityId.h>
Inherited by AZ::NamedEntityId.
Public Member Functions | |
| AZ_CLASS_ALLOCATOR (EntityId, EntityAllocator) | |
| AZ_TYPE_INFO (EntityId, "{6383F1D3-BB27-4E6B-A49A-6409B2059EAA}") | |
| AZ_FORCE_INLINE | EntityId (u64 id=InvalidEntityId) |
| AZ_FORCE_INLINE | operator u64 () const |
| AZ_FORCE_INLINE bool | IsValid () const |
| AZ_FORCE_INLINE void | SetInvalid () |
| AZStd::string | ToString () const |
| AZ_FORCE_INLINE bool | operator== (const EntityId &rhs) const |
| AZ_FORCE_INLINE bool | operator!= (const EntityId &rhs) const |
| AZ_FORCE_INLINE bool | operator< (const EntityId &rhs) const |
| AZ_FORCE_INLINE bool | operator> (const EntityId &rhs) const |
Static Public Attributes | |
| static constexpr u64 | InvalidEntityId = 0x00000000FFFFFFFFull |
Protected Attributes | |
| u64 | m_id |
Friends | |
| class | JsonEntityIdSerializer |
| class | Entity |
Entity ID type. Entity IDs are used to uniquely identify entities. Each component that is attached to an entity is tagged with the entity's ID, and component buses are typically addressed by entity ID.
|
inlineexplicit |
Creates an entity ID instance. If you do not provide a value for the entity ID, the entity ID is set to an invalid value.
| id | (Optional) An ID for the entity. |
Enables this class to be identified across modules and serialized into different contexts.
|
inline |
Determines whether this entity ID is valid. An entity ID is invalid if you did not provide an argument to the entity ID constructor.
|
inlineexplicit |
Casts the entity ID to u64.
|
inline |
Compares two entity IDs.
| rhs | An entity ID whose value you want to compare to the given entity ID. |
|
inline |
Evaluates whether the entity ID is less than a given entity ID.
| rhs | An entity ID whose size you want to compare to the given entity ID. |
|
inline |
Compares two entity IDs for equality.
| rhs | An entity ID whose value you want to compare to the given entity ID. |
|
inline |
Evaluates whether the entity ID is greater than a given entity ID.
| rhs | An entity ID whose size you want to compare to the given entity ID. |
|
inline |
Sets the entity ID to an invalid value.
|
inline |
Returns the entity ID as a string.
|
staticconstexpr |
Invalid entity ID with a machine ID of 0 and the maximum timestamp.
|
protected |
Entity ID.