#include <ComponentBus.h>
Public Member Functions | |
| AZ_CLASS_ALLOCATOR (EntityComponentIdPair, AZ::SystemAllocator) | |
| AZ_RTTI (EntityComponentIdPair, "{C845E5EC-5580-4E12-A9B2-9AE7E5B7826F}") | |
| EntityComponentIdPair () | |
| EntityComponentIdPair (const AZ::EntityId &entityId, const AZ::ComponentId &componentId) | |
| virtual | ~EntityComponentIdPair ()=default |
| AZ::EntityId | GetEntityId () const |
| AZ::ComponentId | GetComponentId () const |
| bool | operator== (const EntityComponentIdPair &other) const |
| bool | operator!= (const EntityComponentIdPair &other) const |
Static Public Member Functions | |
| static void | Reflect (AZ::ReflectContext *context) |
A pair of entity and component IDs that are used to access an address of an AZ::EntityComponentBus.
|
inline |
Creates an empty entity-component ID pair. Entity-component ID pairs are used to access addresses of an AZ::EntityComponentBus.
|
inline |
Creates an empty entity-component ID pair with the specified entity and component ID. Entity-component ID pairs are used to access addresses of an AZ::EntityComponentBus.
| entityId | ID of an entity. |
| componentId | ID of a component. |
|
virtualdefault |
Destroys the entity-ID pair.
| AZ::EntityComponentIdPair::AZ_CLASS_ALLOCATOR | ( | EntityComponentIdPair | , |
| AZ::SystemAllocator | |||
| ) |
Specifies that this class should use AZ::SystemAllocator for memory management by default.
| AZ::EntityComponentIdPair::AZ_RTTI | ( | EntityComponentIdPair | , |
| "{C845E5EC-5580-4E12-A9B2-9AE7E5B7826F}" | |||
| ) |
Adds run-time type information to this class.
|
inline |
Gets the ID of the component so that it can be hashed and combined with the ID of the entity to find which address to use on the message bus.
|
inline |
Gets the ID of the entity so that it can be hashed and combined with the ID of the component to find which address
to use on the message bus.
|
inline |
Overloads the != operator so that entity-component ID pairs can be checked for difference.
| other | An entity-component ID pair whose equality you want to check against. |
|
inline |
Overloads the == operator so that entity-component ID pairs can be checked for equality.
| other | An entity-component ID pair whose equality you want to check against. |
|
static |
Reflects this class into a variety of contexts (script, serialize, edit, and so on).
| reflection | A pointer to the reflection context. |