Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_AnalyticsDataCollectionLoadoutCostModule Interface Reference
Inheritance diagram for SCR_AnalyticsDataCollectionLoadoutCostModule:
SCR_AnalyticsDataCollectionSupplyCostBaseModule SCR_AnalyticsDataCollectionModule

Protected Member Functions

override void Enable ()
 
override void Disable ()
 
override void OnPlayerSpawned (SCR_SpawnRequestComponent requestComponent, int playerId, SCR_SpawnData data, IEntity controlledEntity)
 Player spawned/respawned, add respawn cost and loadout cost to data.
 
void OnPlayerItemRequested (SCR_ResourceComponent resourceComponent, ResourceName resourceName, IEntity requesterEntity, BaseInventoryStorageComponent inventoryStorageComponent, EResourceType resourceType, int resourceValue)
 Player requests an item from Armory, add item name and cost to data.
 
void OnSupportStationExecuted (SCR_BaseSupportStationComponent supportStation, ESupportStationType supportStationType, IEntity actionTarget, IEntity actionUser, SCR_BaseUseSupportStationAction action)
 Support station used, if it resupply ammo or resupply medical support station we add the supply cost to supply spending data.
 
void ~SCR_AnalyticsDataCollectionLoadoutCostModule ()
 
- Protected Member Functions inherited from SCR_AnalyticsDataCollectionSupplyCostBaseModule
override void OnPlayerConnected (int playerId)
 
void AddSupplySpendingData (int playerID, string itemName, int cost)
 
override void OnGameModeEnd ()
 
- Protected Member Functions inherited from SCR_AnalyticsDataCollectionModule
void AddInvokers (IEntity player)
 
void RemoveInvokers (IEntity player)
 
SCR_SessionDataEvent GetSessionDataEvent ()
 

Additional Inherited Members

- Public Member Functions inherited from SCR_AnalyticsDataCollectionSupplyCostBaseModule
SCR_AnalyticsPlayerSupplySpendingData GetPlayerSpendingData (int playerID)
 
void AddPlayerResourceSpendingData (int playerID)
 Gets the supply spending data from all modules and inserts it into dataEvent.
 
- Public Member Functions inherited from SCR_AnalyticsDataCollectionModule
void InitModule ()
 
void Update (float timeTick)
 
void OnPlayerDisconnected (int playerId, KickCauseCode cause, IEntity controlledEntity=null)
 
void OnControllableDestroyed (notnull SCR_InstigatorContextData instigatorContextData)
 
void OnGameEnd ()
 
void OnControlledEntityChanged (IEntity from, IEntity to)
 
void SessionMeasures ()
 Periodically called when server has players To be overriden in modules to add session data before it is sent.
 
bool IsEnabled ()
 
- Public Attributes inherited from SCR_AnalyticsDataCollectionModule
float m_fUpdatePeriod
 
- Protected Attributes inherited from SCR_AnalyticsDataCollectionSupplyCostBaseModule
ref map< int, ref SCR_AnalyticsPlayerSupplySpendingDatam_mPlayerSupplySpendingData = new map<int, ref SCR_AnalyticsPlayerSupplySpendingData>()
 
- Protected Attributes inherited from SCR_AnalyticsDataCollectionModule
float m_fTimeSinceUpdate = 0
 
bool m_bIsEnabled = true
 

Constructor & Destructor Documentation

◆ ~SCR_AnalyticsDataCollectionLoadoutCostModule()

void SCR_AnalyticsDataCollectionLoadoutCostModule.~SCR_AnalyticsDataCollectionLoadoutCostModule ( )
protected

Member Function Documentation

◆ Disable()

override void SCR_AnalyticsDataCollectionLoadoutCostModule.Disable ( )
protected

◆ Enable()

override void SCR_AnalyticsDataCollectionLoadoutCostModule.Enable ( )
protected

◆ OnPlayerItemRequested()

void SCR_AnalyticsDataCollectionLoadoutCostModule.OnPlayerItemRequested ( SCR_ResourceComponent resourceComponent,
ResourceName resourceName,
IEntity requesterEntity,
BaseInventoryStorageComponent inventoryStorageComponent,
EResourceType resourceType,
int resourceValue )
protected

Player requests an item from Armory, add item name and cost to data.

Parameters
[in]resourceName
[in]inventoryStorageComponent
[in]resourceValue

◆ OnPlayerSpawned()

override void SCR_AnalyticsDataCollectionLoadoutCostModule.OnPlayerSpawned ( SCR_SpawnRequestComponent requestComponent,
int playerId,
SCR_SpawnData data,
IEntity controlledEntity )
protected

Player spawned/respawned, add respawn cost and loadout cost to data.

Parameters
[in]requestComponent
[in]playerId
[in]data
[in]controlledEntity

Implements SCR_AnalyticsDataCollectionModule.

◆ OnSupportStationExecuted()

void SCR_AnalyticsDataCollectionLoadoutCostModule.OnSupportStationExecuted ( SCR_BaseSupportStationComponent supportStation,
ESupportStationType supportStationType,
IEntity actionTarget,
IEntity actionUser,
SCR_BaseUseSupportStationAction action )
protected

Support station used, if it resupply ammo or resupply medical support station we add the supply cost to supply spending data.

Parameters
[in]supportStation
[in]supportStationType
[in]actionTarget
[in]actionUser
[in]action

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