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

Base Used for items and attachments which should not be shown in the arsenal but should have a cost to them so any weapon in arsenal with that attachment will get a supply cost increase as well as being able to sell the item in the arsenal. More...

Inheritance diagram for SCR_NonArsenalItemCostCatalogData:
SCR_BaseEntityCatalogData

Protected Member Functions

int GetSupplyCost (SCR_EArsenalSupplyCostType supplyCostType, bool addAdditionalCosts=true)
override void InitData (notnull SCR_EntityCatalogEntry entry)
override void PostInitData (notnull SCR_EntityCatalogEntry entry)
 Gets the calculated cost of the attachments and ammo.

Protected Attributes

int m_iSupplyCost
ref array< ref SCR_ArsenalAlternativeCostData > m_aArsenalAlternativeCostData
ref array< SCR_ArsenalItemm_aAdditionalCosts
ref array< SCR_NonArsenalItemCostCatalogDatam_aNonArsenalAdditionalCosts
ref map< SCR_EArsenalSupplyCostType, intm_mArsenalAlternativeCostData

Detailed Description

Base Used for items and attachments which should not be shown in the arsenal but should have a cost to them so any weapon in arsenal with that attachment will get a supply cost increase as well as being able to sell the item in the arsenal.

Definition at line 3 of file SCR_NonArsenalItemCostCatalogData.c.

Member Function Documentation

◆ GetSupplyCost()

int SCR_NonArsenalItemCostCatalogData::GetSupplyCost ( SCR_EArsenalSupplyCostType supplyCostType,
bool addAdditionalCosts = true )
inlineprotected

Get supply cost of item

Parameters
[in]supplyCostTypeWhat the supply cost is that should be obtained from the arsenal data. If the specific supply cost is not found then Default will be used instead
[in]addAdditionalCostsWhether additional costs should be counted in supply cost or not. By default set to true.
Returns
Supplycost

Definition at line 22 of file SCR_NonArsenalItemCostCatalogData.c.

◆ InitData()

override void SCR_NonArsenalItemCostCatalogData::InitData ( notnull SCR_EntityCatalogEntry entry)
inlineprotected

Definition at line 57 of file SCR_NonArsenalItemCostCatalogData.c.

◆ PostInitData()

override void SCR_NonArsenalItemCostCatalogData::PostInitData ( notnull SCR_EntityCatalogEntry entry)
inlineprotected

Gets the calculated cost of the attachments and ammo.

Definition at line 80 of file SCR_NonArsenalItemCostCatalogData.c.

Member Data Documentation

◆ m_aAdditionalCosts

ref array<SCR_ArsenalItem> SCR_NonArsenalItemCostCatalogData::m_aAdditionalCosts
protected

Definition at line 12 of file SCR_NonArsenalItemCostCatalogData.c.

◆ m_aArsenalAlternativeCostData

ref array<ref SCR_ArsenalAlternativeCostData> SCR_NonArsenalItemCostCatalogData::m_aArsenalAlternativeCostData
protected

Definition at line 9 of file SCR_NonArsenalItemCostCatalogData.c.

◆ m_aNonArsenalAdditionalCosts

ref array<SCR_NonArsenalItemCostCatalogData> SCR_NonArsenalItemCostCatalogData::m_aNonArsenalAdditionalCosts
protected

Definition at line 13 of file SCR_NonArsenalItemCostCatalogData.c.

◆ m_iSupplyCost

int SCR_NonArsenalItemCostCatalogData::m_iSupplyCost
protected

Definition at line 6 of file SCR_NonArsenalItemCostCatalogData.c.

◆ m_mArsenalAlternativeCostData

ref map<SCR_EArsenalSupplyCostType, int> SCR_NonArsenalItemCostCatalogData::m_mArsenalAlternativeCostData
protected

Definition at line 15 of file SCR_NonArsenalItemCostCatalogData.c.


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