Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AnalyticsPlayerSupplySpendingData.c
Go to the documentation of this file.
2{
4
5 //------------------------------------------------------------------------------------------------
7 {
8 int aggregateSupplyCost, i;
9 for (i; i < m_mItemSupplyCosts.Count(); i++)
10 {
11 aggregateSupplyCost += m_mItemSupplyCosts.GetElement(i);
12 }
13
14 return aggregateSupplyCost;
15 }
16
17 //------------------------------------------------------------------------------------------------
22
23 //------------------------------------------------------------------------------------------------
28 void AddItemSupplyCost(string itemName, int cost)
29 {
30 if (cost == 0)
31 return;
32
33 m_mItemSupplyCosts.Set(itemName, m_mItemSupplyCosts.Get(itemName) + cost);
34 }
35}
Definition Types.c:486