Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_NonArsenalItemCostCatalogData Interface 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

Public Member Functions

int GetSupplyCost (SCR_EArsenalSupplyCostType supplyCostType, bool addAdditionalCosts=true)
 Get supply cost of item.
 
override void InitData (notnull SCR_EntityCatalogEntry entry)
 Called by Catalog on creation.
 
override void PostInitData (notnull SCR_EntityCatalogEntry entry)
 Gets the calculated cost of the attachments and ammo.
 
- Public Member Functions inherited from SCR_BaseEntityCatalogData
bool IsEnabled ()
 If is Enabled.
 

Protected Attributes

int m_iSupplyCost
 
ref array< ref SCR_ArsenalAlternativeCostDatam_aArsenalAlternativeCostData
 
ref array< SCR_ArsenalItemm_aAdditionalCosts
 
ref array< SCR_NonArsenalItemCostCatalogDatam_aNonArsenalAdditionalCosts
 
ref map< SCR_EArsenalSupplyCostType, int > m_mArsenalAlternativeCostData
 
- Protected Attributes inherited from SCR_BaseEntityCatalogData
bool m_bEnabled
 

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.

Member Function Documentation

◆ GetSupplyCost()

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

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

◆ InitData()

override void SCR_NonArsenalItemCostCatalogData.InitData ( notnull SCR_EntityCatalogEntry entry)

Called by Catalog on creation.

Special init for data. To be overidden. Never called if Data is disabled

Parameters
[in]entryEntry the data is attached to

Implements SCR_BaseEntityCatalogData.

◆ PostInitData()

override void SCR_NonArsenalItemCostCatalogData.PostInitData ( notnull SCR_EntityCatalogEntry entry)

Gets the calculated cost of the attachments and ammo.

Implements SCR_BaseEntityCatalogData.

Member Data Documentation

◆ m_aAdditionalCosts

ref array<SCR_ArsenalItem> SCR_NonArsenalItemCostCatalogData.m_aAdditionalCosts
protected

◆ m_aArsenalAlternativeCostData

ref array<ref SCR_ArsenalAlternativeCostData> SCR_NonArsenalItemCostCatalogData.m_aArsenalAlternativeCostData
protected

◆ m_aNonArsenalAdditionalCosts

ref array<SCR_NonArsenalItemCostCatalogData> SCR_NonArsenalItemCostCatalogData.m_aNonArsenalAdditionalCosts
protected

◆ m_iSupplyCost

int SCR_NonArsenalItemCostCatalogData.m_iSupplyCost
protected

◆ m_mArsenalAlternativeCostData

ref map<SCR_EArsenalSupplyCostType, int> SCR_NonArsenalItemCostCatalogData.m_mArsenalAlternativeCostData
protected

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