VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtFunctionQueue::QueuedFunction Struct Reference

Detailed Description

Stores a list of functions to be executed after a delay. Functions are executed on DtDe preTick or postTick once tick delay or timer reaches zero.

#include <functionQueue.h>

Public Member Functions

 QueuedFunction (std::function< void()> _f, int _ticks, double _time)
 

Public Attributes

std::function< void()> f
 
int ticks
 
double time
 

Constructor & Destructor Documentation

◆ QueuedFunction()

makVre::DtFunctionQueue::QueuedFunction::QueuedFunction ( std::function< void()> _f,
int _ticks,
double _time )
inline

Constructor.

Parameters
_fFunction to execute
_ticksNumber of ticks to wait
_timeTime in seconds to wait

References f, ticks, and time.

Member Data Documentation

◆ f

std::function<void()> makVre::DtFunctionQueue::QueuedFunction::f

Function to be executed.

Referenced by QueuedFunction().

◆ ticks

int makVre::DtFunctionQueue::QueuedFunction::ticks

Number of ticks to wait before execution.

Referenced by QueuedFunction().

◆ time

double makVre::DtFunctionQueue::QueuedFunction::time

Time in seconds to wait before execution.

Referenced by QueuedFunction().


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