Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_AnalyticsDelayedSend Interface Reference

Public Member Functions

void Start ()
 Start this tracking time in this menu, adds it to previous time if we have not yet sended previous data.
 
void Stop ()
 Stop tracking time in this menu, prepare for sending data.
 
bool IsAdditive ()
 Are we adding the time to previous time, or starting fresh?
 
void Update (float deltaSeconds)
 Updates the delayed send by N seconds.
 
bool IsReadyToSend ()
 Should we send our data already?
 
void ResetReadyToSend ()
 We have sended our data, reset.
 
int GetTimeSpent ()
 How much time we have spent in menu.
 

Protected Attributes

SCR_EAnalyticsDelayedState m_eState = SCR_EAnalyticsDelayedState.INACTIVE
 
bool m_bIsAdditive = false
 
float m_fTimeSpentSeconds = 0
 
float m_fDelayLeftSeconds = 0
 

Static Protected Attributes

static const int ANALYTICS_DELAY_SECONDS = 10
 

Member Function Documentation

◆ GetTimeSpent()

int SCR_AnalyticsDelayedSend.GetTimeSpent ( )

How much time we have spent in menu.

Returns
number of seconds rounded to the nearest whole number

◆ IsAdditive()

bool SCR_AnalyticsDelayedSend.IsAdditive ( )

Are we adding the time to previous time, or starting fresh?

Returns
true if we are adding time to previous time, false otherwise.

◆ IsReadyToSend()

bool SCR_AnalyticsDelayedSend.IsReadyToSend ( )

Should we send our data already?

◆ ResetReadyToSend()

void SCR_AnalyticsDelayedSend.ResetReadyToSend ( )

We have sended our data, reset.

◆ Start()

void SCR_AnalyticsDelayedSend.Start ( )

Start this tracking time in this menu, adds it to previous time if we have not yet sended previous data.

◆ Stop()

void SCR_AnalyticsDelayedSend.Stop ( )

Stop tracking time in this menu, prepare for sending data.

◆ Update()

void SCR_AnalyticsDelayedSend.Update ( float deltaSeconds)

Updates the delayed send by N seconds.

Parameters
[in]deltaSeconds

Member Data Documentation

◆ ANALYTICS_DELAY_SECONDS

const int SCR_AnalyticsDelayedSend.ANALYTICS_DELAY_SECONDS = 10
staticprotected

◆ m_bIsAdditive

bool SCR_AnalyticsDelayedSend.m_bIsAdditive = false
protected

◆ m_eState

SCR_EAnalyticsDelayedState SCR_AnalyticsDelayedSend.m_eState = SCR_EAnalyticsDelayedState.INACTIVE
protected

◆ m_fDelayLeftSeconds

float SCR_AnalyticsDelayedSend.m_fDelayLeftSeconds = 0
protected

◆ m_fTimeSpentSeconds

float SCR_AnalyticsDelayedSend.m_fTimeSpentSeconds = 0
protected

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