Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AnalyticsDelayedSend.c File Reference

Go to the source code of this file.

Enumerations

enum  SCR_EAnalyticsDelayedState { INACTIVE , IN_MENU , OUT_MENU_WAITING , OUT_MENU_SENDING }

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 ()
void Update (float deltaSeconds)
bool IsReadyToSend ()
 Should we send our data already?
void ResetReadyToSend ()
 We have sended our data, reset.
int GetTimeSpent ()

Variables

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

Enumeration Type Documentation

◆ SCR_EAnalyticsDelayedState

Enumerator
INACTIVE 
IN_MENU 
OUT_MENU_WAITING 
OUT_MENU_SENDING 

Definition at line 1 of file SCR_AnalyticsDelayedSend.c.

Function Documentation

◆ GetTimeSpent()

int GetTimeSpent ( )
protected

How much time we have spent in menu

Returns
number of seconds rounded to the nearest whole number

Definition at line 86 of file SCR_AnalyticsDelayedSend.c.

◆ IsAdditive()

bool IsAdditive ( )
protected

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

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

Definition at line 39 of file SCR_AnalyticsDelayedSend.c.

◆ IsReadyToSend()

bool IsReadyToSend ( )
protected

Should we send our data already?

Definition at line 71 of file SCR_AnalyticsDelayedSend.c.

◆ ResetReadyToSend()

void ResetReadyToSend ( )
protected

We have sended our data, reset.

Definition at line 78 of file SCR_AnalyticsDelayedSend.c.

◆ Start()

void Start ( )
protected

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

Definition at line 20 of file SCR_AnalyticsDelayedSend.c.

◆ Update()

void Update ( float timeSlice)
protected

Updates the delayed send by N seconds

Parameters
[in]deltaSeconds
[in]timeSlice

Definition at line 47 of file SCR_AnalyticsDelayedSend.c.

Variable Documentation

◆ ANALYTICS_DELAY_SECONDS

enum SCR_EAnalyticsDelayedState ANALYTICS_DELAY_SECONDS = 10

◆ m_bIsAdditive

bool m_bIsAdditive = false
protected

Definition at line 14 of file SCR_AnalyticsDelayedSend.c.

◆ m_eState

◆ m_fDelayLeftSeconds

float m_fDelayLeftSeconds = 0
protected

Definition at line 16 of file SCR_AnalyticsDelayedSend.c.

◆ m_fTimeSpentSeconds

float m_fTimeSpentSeconds = 0
protected

Definition at line 15 of file SCR_AnalyticsDelayedSend.c.