|
Arma Reforger Script API
|
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...
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_ArsenalAlternativeCostData > | m_aArsenalAlternativeCostData |
| ref array< SCR_ArsenalItem > | m_aAdditionalCosts |
| ref array< SCR_NonArsenalItemCostCatalogData > | m_aNonArsenalAdditionalCosts |
| ref map< SCR_EArsenalSupplyCostType, int > | m_mArsenalAlternativeCostData |
Protected Attributes inherited from SCR_BaseEntityCatalogData | |
| bool | m_bEnabled |
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.
| int SCR_NonArsenalItemCostCatalogData.GetSupplyCost | ( | SCR_EArsenalSupplyCostType | supplyCostType, |
| bool | addAdditionalCosts = true ) |
Get supply cost of item.
| [in] | supplyCostType | What 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] | addAdditionalCosts | Whether additional costs should be counted in supply cost or not. By default set to true. |
| 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
| [in] | entry | Entry the data is attached to |
Implements SCR_BaseEntityCatalogData.
| override void SCR_NonArsenalItemCostCatalogData.PostInitData | ( | notnull SCR_EntityCatalogEntry | entry | ) |
Gets the calculated cost of the attachments and ammo.
Implements SCR_BaseEntityCatalogData.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |