LkEngine 0.1.2
 
Loading...
Searching...
No Matches
LkEngine::LTimerManager Class Reference

Public Member Functions

FTimerHandle SetTimer (const FTimerDelegate &TimerDelegate, const float DelayInSeconds, const bool Loop=false)
 Set a timer with a delegate, delay and optional looping.
 
FORCEINLINE void ClearTimer (const FTimerHandle Handle)
 Clear a timer by its handle.
 
FORCEINLINE bool IsTimerActive (const FTimerHandle Handle) const
 Check if a timer is active.
 
FORCEINLINE void Update ()
 Update timers, execute callbacks as they expire.
 

Member Function Documentation

◆ ClearTimer()

FORCEINLINE void LkEngine::LTimerManager::ClearTimer ( const FTimerHandle Handle)
inline

Clear a timer by its handle.

Does nothing if the handle doesn't belong to an active timer.

◆ IsTimerActive()

FORCEINLINE bool LkEngine::LTimerManager::IsTimerActive ( const FTimerHandle Handle) const
inline

Check if a timer is active.

Returns
true if active, else false.

◆ SetTimer()

FTimerHandle LkEngine::LTimerManager::SetTimer ( const FTimerDelegate & TimerDelegate,
const float DelayInSeconds,
const bool Loop = false )
inline

Set a timer with a delegate, delay and optional looping.

Returns
the handle of the created timer.

The documentation for this class was generated from the following file: