Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
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:
[legend]

Public Member Functions

int GetSupplyCost (SCR_EArsenalSupplyCostType supplyCostType)
 Get supply cost of item.
 
override void InitData (notnull SCR_EntityCatalogEntry entry)
 Called by Catalog on creation.
 
- Public Member Functions inherited from SCR_BaseEntityCatalogData
bool IsEnabled ()
 If is Enabled.
 
void InitData (notnull SCR_EntityCatalogEntry entry)
 Called by Catalog on creation.
 
void PostInitData (notnull SCR_EntityCatalogEntry entry)
 Called by Catalog after init data is called for all other entries.
 

Protected Attributes

int m_iSupplyCost
 
ref array< ref SCR_ArsenalAlternativeCostDatam_aArsenalAlternativeCostData
 
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)

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
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.

Member Data Documentation

◆ m_aArsenalAlternativeCostData

ref array<ref SCR_ArsenalAlternativeCostData> SCR_NonArsenalItemCostCatalogData.m_aArsenalAlternativeCostData
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: