#include <EntityContextBus.h>
Inherits AZ::EBusTraits.
Public Types | |
typedef EntityContextId | BusIdType |
Public Member Functions | |
virtual | ~EntityContextEvents () |
virtual void | OnEntityContextLoadedFromStream (const EntityList &) |
virtual void | OnEntityContextReset () |
virtual void | OnEntityContextCreateEntity (AZ::Entity &) |
virtual void | OnEntityContextDestroyEntity (const AZ::EntityId &) |
Static Public Attributes | |
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
Interface for the AzFramework::EntityContextEventBus, which is the EBus that dispatches notification events from the global entity context. If you want to receive notification events from a specific entity context, such as the game entity context, use the interface specific to that context. If you want to receive notification events from multiple types of entity contexts, use this interface.
Specifies that events are addressed by entity context ID.
|
inlinevirtual |
Destroys the instance of the class.
|
inlinevirtual |
Signals that the entity context created an entity.
entity | A reference to the entity that was created. |
|
inlinevirtual |
Signals that the entity context is about to destroy an entity.
id | A reference to the ID of the entity that will be destroyed. |
|
inlinevirtual |
Signals that an entity context was loaded from a stream.
contextEntities | A reference to a list of entities that are owned by the entity context that was loaded. |
|
inlinevirtual |
Signals that the entity context was reset.
|
static |
Overrides the default AZ::EBusAddressPolicy to specify that the EBus has multiple addresses. Events that are addressed to an ID are received by all handlers connected to that ID.