Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AnalyticsInventory Class Reference

Protected Member Functions

void OpenInventory (float currentWeight)
void CloseInventory (float currentWeight)
void Update (float deltaSeconds)
bool IsReadyToSend ()
void ResetReadyToSend ()
 We have sended the data, so we reset.
void InteractWithItem (SCR_EAnalyticalItemSlotType itemSlotType)
void UseHealing ()
 We used healing (bandages) through the inventory. Save it for analytics.
void UseExamination ()
 We used examination through the inventory. Save it for analytics.
SCR_InventoryData GetClonedData ()
string ArrayToString (array< float > arr)

Protected Attributes

ref SCR_InventoryData m_Inventory = new SCR_InventoryData()
ref SCR_AnalyticsDelayedSend m_DelayedSend = new SCR_AnalyticsDelayedSend()
ref array< floatm_aOpenWeights = {}
ref array< floatm_aCloseWeights = {}

Detailed Description

Definition at line 1 of file SCR_AnalyticsInventory.c.

Member Function Documentation

◆ ArrayToString()

string SCR_AnalyticsInventory::ArrayToString ( array< float > arr)
inlineprotected
Returns
currently saved data as a copy

Definition at line 119 of file SCR_AnalyticsInventory.c.

◆ CloseInventory()

void SCR_AnalyticsInventory::CloseInventory ( float currentWeight)
inlineprotected

User closes the inventory and it contains a specific weight. Save it for the analytics.

Parameters
[in]currentWeight

Definition at line 28 of file SCR_AnalyticsInventory.c.

◆ GetClonedData()

SCR_InventoryData SCR_AnalyticsInventory::GetClonedData ( )
inlineprotected
Returns
currently saved data as a copy

Definition at line 109 of file SCR_AnalyticsInventory.c.

◆ InteractWithItem()

void SCR_AnalyticsInventory::InteractWithItem ( SCR_EAnalyticalItemSlotType itemSlotType)
inlineprotected

We have interacted with an item of particular slot type.

Parameters
[in]itemSlotType

Definition at line 67 of file SCR_AnalyticsInventory.c.

◆ IsReadyToSend()

bool SCR_AnalyticsInventory::IsReadyToSend ( )
inlineprotected

Check if we are ready to send our saved data to analytics.

Returns
bool

Definition at line 52 of file SCR_AnalyticsInventory.c.

◆ OpenInventory()

void SCR_AnalyticsInventory::OpenInventory ( float currentWeight)
inlineprotected

User opens the inventory and it contains a specific weight. Save it for the analytics.

Parameters
[in]currentWeight

Definition at line 11 of file SCR_AnalyticsInventory.c.

◆ ResetReadyToSend()

void SCR_AnalyticsInventory::ResetReadyToSend ( )
inlineprotected

We have sended the data, so we reset.

Definition at line 59 of file SCR_AnalyticsInventory.c.

◆ Update()

void SCR_AnalyticsInventory::Update ( float deltaSeconds)
inlineprotected

Update time spent in inventory and outside it. We need to wait until we send the inventoryClosed event to prevent multiple sends in rapid succession.

Parameters
[in]deltaSeconds

Definition at line 44 of file SCR_AnalyticsInventory.c.

◆ UseExamination()

void SCR_AnalyticsInventory::UseExamination ( )
inlineprotected

We used examination through the inventory. Save it for analytics.

Definition at line 102 of file SCR_AnalyticsInventory.c.

◆ UseHealing()

void SCR_AnalyticsInventory::UseHealing ( )
inlineprotected

We used healing (bandages) through the inventory. Save it for analytics.

Definition at line 95 of file SCR_AnalyticsInventory.c.

Member Data Documentation

◆ m_aCloseWeights

ref array<float> SCR_AnalyticsInventory::m_aCloseWeights = {}
protected

Definition at line 6 of file SCR_AnalyticsInventory.c.

◆ m_aOpenWeights

ref array<float> SCR_AnalyticsInventory::m_aOpenWeights = {}
protected

Definition at line 5 of file SCR_AnalyticsInventory.c.

◆ m_DelayedSend

ref SCR_AnalyticsDelayedSend SCR_AnalyticsInventory::m_DelayedSend = new SCR_AnalyticsDelayedSend()
protected

Definition at line 4 of file SCR_AnalyticsInventory.c.

◆ m_Inventory

ref SCR_InventoryData SCR_AnalyticsInventory::m_Inventory = new SCR_InventoryData()
protected

Definition at line 3 of file SCR_AnalyticsInventory.c.


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