#include <ScheduledEventHandle.h>
This is a handle class that wraps a scheduled event. This is created inside of EventSchedulerSystemComponent and deleted in EventSchedulerSystemComponent::OnTick()
◆ ScheduledEventHandle()
Constructor of ScheduledEventHandle struct.
- Parameters
-
| executeTimeMs | an absolute time in ms at which point the scheduled event should trigger |
| durationTimeMs | the interval time in ms used for prioritization as well as re-queueing |
| scheduledEvent | a scheduled event to run |
| ownsScheduledEvent | true if the event handle owns its own scheduled event instance |
◆ GetDurationTimeMs()
| TimeMs AZ::ScheduledEventHandle::GetDurationTimeMs |
( |
| ) |
const |
Get the duration time in ms for this scheduled event. This is the time between queuing and triggering, not how long the event is expected to execute for
- Returns
- the duration time in ms for this scheduled event
◆ GetExecuteTimeMs()
| TimeMs AZ::ScheduledEventHandle::GetExecuteTimeMs |
( |
| ) |
const |
Get the execution time in ms for this scheduled event.
- Returns
- the execution time in ms for this scheduled event
◆ GetOwnsScheduledEvent()
| bool AZ::ScheduledEventHandle::GetOwnsScheduledEvent |
( |
| ) |
const |
Gets whether or not the event handle owns its own scheduled event.
- Returns
- true if the event handle owns
◆ GetScheduledEvent()
| ScheduledEvent * AZ::ScheduledEventHandle::GetScheduledEvent |
( |
| ) |
const |
Gets the scheduled event instance bound to this event handle.
- Returns
- the scheduled event instance bound to this event handle
◆ Notify()
| bool AZ::ScheduledEventHandle::Notify |
( |
| ) |
|
Run a callback function.
- Returns
- true for re-queuing a scheduled event or false for deleting this class.
◆ operator>()
operator of comparing a scheduled event by execute time.
- Parameters
-
| a_Rhs | a scheduled event handle to compare |
The documentation for this struct was generated from the following file:
- Code/Framework/AzCore/AzCore/EBus/ScheduledEventHandle.h