CSkinTimerManager is the container and manager for Skin timers. Its role is that of checking if the timer boolean conditions are valid, start or stop timers and execute the respective builtin actions linked to the timer lifecycle.
More...
#include <SkinTimerManager.h>
CSkinTimerManager is the container and manager for Skin timers. Its role is that of checking if the timer boolean conditions are valid, start or stop timers and execute the respective builtin actions linked to the timer lifecycle.
- Note
- This component should only be called by the main/rendering thread
- See also
- Skin_Timers
-
CSkinTimer
◆ CSkinTimerManager() [1/2]
Skin timer manager constructor.
- Parameters
-
infoMgr | reference to the infomanager |
◆ CSkinTimerManager() [2/2]
CSkinTimerManager::CSkinTimerManager |
( |
| ) |
|
|
delete |
◆ ~CSkinTimerManager()
CSkinTimerManager::~CSkinTimerManager |
( |
| ) |
|
|
default |
Default skin timer manager destructor.
◆ GetTimerCount()
size_t CSkinTimerManager::GetTimerCount |
( |
| ) |
const |
Gets the total number of timers registered in the manager.
- Returns
- the timer count
◆ GetTimerElapsedSeconds()
float CSkinTimerManager::GetTimerElapsedSeconds |
( |
const std::string & | timer | ) |
const |
Get the elapsed seconds since the timer with name timer
was started.
- Parameters
-
timer | the name of the skin timer |
- Returns
- the elapsed time in seconds the given timer is running (0 if not running or if it does not exist)
◆ GrabTimer()
std::unique_ptr< CSkinTimer > CSkinTimerManager::GrabTimer |
( |
const std::string & | timer | ) |
|
Move a given timer, removing it from the manager.
- Parameters
-
timer | the name of the skin timer |
- Returns
- the timer (moved), nullptr if it doesn't exist
◆ LoadTimers()
void CSkinTimerManager::LoadTimers |
( |
const std::string & | path | ) |
|
Loads all the skin timers.
- Parameters
-
path | - the path for the skin Timers.xml file |
◆ Process()
void CSkinTimerManager::Process |
( |
| ) |
|
Run the main manager processing loop.
◆ Stop()
void CSkinTimerManager::Stop |
( |
| ) |
|
◆ TimerExists()
bool CSkinTimerManager::TimerExists |
( |
const std::string & | timer | ) |
const |
Checks if the timer with name timer
exists.
- Parameters
-
timer | the name of the skin timer |
- Returns
- true if the given timer exists, false otherwise
◆ TimerIsRunning()
bool CSkinTimerManager::TimerIsRunning |
( |
const std::string & | timer | ) |
const |
Checks if the timer with name timer
is running.
- Parameters
-
timer | the name of the skin timer |
- Returns
- true if the given timer exists and is running, false otherwise
◆ TimerStart()
void CSkinTimerManager::TimerStart |
( |
const std::string & | timer | ) |
const |
Starts/Enables a given skin timer.
- Parameters
-
timer | the name of the skin timer |
◆ TimerStop()
void CSkinTimerManager::TimerStop |
( |
const std::string & | timer | ) |
const |
Stops/Disables a given skin timer.
- Parameters
-
timer | the name of the skin timer |
The documentation for this class was generated from the following files: