This is scheduled event queue class to run all scheduled events at appropriate intervals.
More...
#include <EventSchedulerSystemComponent.h>
Inherits AZ::Component, TickBus::Handler, and IEventSchedulerRequestBus::Handler.
|
virtual void | Init () |
|
virtual bool | ReadInConfig (const ComponentConfig *baseConfig) |
|
virtual bool | WriteOutConfig (ComponentConfig *outBaseConfig) const |
|
virtual void | SetEntity (Entity *entity) |
|
virtual void | OnAfterEntitySet () |
| Function to call after setting the entity in this component.
|
|
Entity * | m_entity |
| Reference to the entity that owns the component. The value is null if the component is not attached to an entity.
|
|
ComponentId | m_id |
| A component ID that is unique for an entity. This component ID is not unique across all entities.
|
|
This is scheduled event queue class to run all scheduled events at appropriate intervals.
◆ Activate()
void AZ::EventSchedulerSystemComponent::Activate |
( |
| ) |
|
|
overridevirtual |
◆ AddEvent()
◆ Deactivate()
void AZ::EventSchedulerSystemComponent::Deactivate |
( |
| ) |
|
|
overridevirtual |
Deactivates the component. The system calls this function when the owning entity is being deactivated. You must override this function. As a best practice, ensure that this function returns the component to a minimal footprint. The order of deactivation is the reverse of activation, so your component is deactivated before the components it depends on.
The system always calls the component's Deactivate() function before destroying the component. However, deactivation is not always followed by the destruction of the component. An entity and its components can be deactivated and reactivated without being destroyed. Ensure that your Deactivate() implementation can handle this scenario.
Implements AZ::Component.
◆ GetHandleCount()
AZStd::size_t AZ::EventSchedulerSystemComponent::GetHandleCount |
( |
| ) |
const |
◆ OnTick()
AZ::TickBus::Handler overrides.
The documentation for this class was generated from the following file:
- Code/Framework/AzCore/AzCore/EBus/EventSchedulerSystemComponent.h