VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtPlayerStationApp::DeferredFunc Struct Reference

Detailed Description

Stores a list of functions to be executed after a delay. Functions are executed at start of app tick once tick delay or timer reaches zero.

#include <playerStationApp.h>

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

◆ DeferredFunc()

makVre::DtPlayerStationApp::DeferredFunc::DeferredFunc ( 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::DtPlayerStationApp::DeferredFunc::f

Function to be executed.

Referenced by DeferredFunc().

◆ ticks

int makVre::DtPlayerStationApp::DeferredFunc::ticks

Number of ticks to wait before execution.

Referenced by DeferredFunc().

◆ time

double makVre::DtPlayerStationApp::DeferredFunc::time

Time in seconds to wait before execution.

Referenced by DeferredFunc().


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