#include <EntityActiveSystemBus.h>
Inherits AZ::EBusTraits.
Public Member Functions | |
| virtual size_t | GetActiveTypeIndexByName (AZStd::string typeName)=0 |
| virtual size_t | GetActiveTypeIndexById (AZ::Crc32 typeNameId)=0 |
Static Public Attributes | |
| static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
| static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::Single |
Static Public Attributes inherited from AZ::EBusTraits | |
| static constexpr EBusHandlerPolicy | HandlerPolicy = EBusHandlerPolicy::Multiple |
| static constexpr EBusAddressPolicy | AddressPolicy = EBusAddressPolicy::Single |
| static constexpr bool | EnableEventQueue = false |
| static constexpr bool | EventQueueingActiveByDefault = true |
| static constexpr bool | EnableQueuedReferences = false |
| static constexpr bool | LocklessDispatch = false |
Entities have a bitmask that represents their activation state, where the entity is only activated if all bits are set (true by default). You can use this bus to reserve a bit in the bitmask for your system to cause entities to become inactive for your own purposes (LOD, visibilty, etc.)
|
pure virtual |
Reserves a bit in the bitset for a given name as a Crc32 and returns the index of it. If the name has already been reserved, returns the existing index without registering a new one.
|
pure virtual |
Reserves a bit in the bitset for the given name and returns the index of it. If the name has already been reserved, returns the existing index without registering a new one