Open 3D Engine AzCore API Reference
2305.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <ScheduledEventHandle.h>
Public Member Functions | |
ScheduledEventHandle ()=default | |
Default constructor for AZStd::deque compatibility. | |
ScheduledEventHandle (TimeMs executeTimeMs, TimeMs durationTimeMs, ScheduledEvent *scheduledEvent, bool ownsScheduledEvent=false) | |
bool | operator> (const ScheduledEventHandle &rhs) const |
bool | Notify () |
TimeMs | GetExecuteTimeMs () const |
TimeMs | GetDurationTimeMs () const |
bool | GetOwnsScheduledEvent () const |
ScheduledEvent * | GetScheduledEvent () const |
void | Clear () |
Used internally to clear the event associated with this handle. | |
This is a handle class that wraps a scheduled event. This is created inside of EventSchedulerSystemComponent and deleted in EventSchedulerSystemComponent::OnTick()
AZ::ScheduledEventHandle::ScheduledEventHandle | ( | TimeMs | executeTimeMs, |
TimeMs | durationTimeMs, | ||
ScheduledEvent * | scheduledEvent, | ||
bool | ownsScheduledEvent = false |
||
) |
Constructor of ScheduledEventHandle struct.
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 |
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
TimeMs AZ::ScheduledEventHandle::GetExecuteTimeMs | ( | ) | const |
Get the execution time in ms for this scheduled event.
bool AZ::ScheduledEventHandle::GetOwnsScheduledEvent | ( | ) | const |
Gets whether or not the event handle owns its own scheduled event.
ScheduledEvent* AZ::ScheduledEventHandle::GetScheduledEvent | ( | ) | const |
Gets the scheduled event instance bound to this event handle.
bool AZ::ScheduledEventHandle::Notify | ( | ) |
Run a callback function.
bool AZ::ScheduledEventHandle::operator> | ( | const ScheduledEventHandle & | rhs | ) | const |
operator of comparing a scheduled event by execute time.
a_Rhs | a scheduled event handle to compare |