Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ArsenalItem.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_ArsenalItem
 

Functions

SCR_ArsenalItem SCR_BaseEntityCatalogData BaseContainerProps ()
 
SCR_EArsenalItemType GetItemType ()
 
SCR_EArsenalItemMode GetItemMode ()
 
ResourceName GetItemResourceName ()
 
Resource GetItemResource ()
 
SCR_ArsenalItemDisplayData GetDisplayDataOfType (EArsenalItemDisplayType displayType)
 
int GetSupplyCost (SCR_EArsenalSupplyCostType supplyCostType)
 
override void InitData (notnull SCR_EntityCatalogEntry entry)
 
SCR_ArsenalItem SCR_BaseEntityCatalogData BaseContainerCustomEnumWithValue (SCR_EArsenalSupplyCostType, "m_eAlternativeCostType", "m_iSupplyCost", "1", "%1 - Supply cost: %2")
 

Variables

protected SCR_EArsenalItemType m_eItemType
 
protected SCR_EArsenalItemMode m_eItemMode
 
protected int m_iSupplyCost
 
protected ref array< ref SCR_ArsenalItemDisplayDatam_aArsenalDisplayData
 
protected ref array< ref SCR_ArsenalAlternativeCostData > m_aArsenalAlternativeCostData
 
protected ref map< SCR_EArsenalSupplyCostType, intm_mArsenalAlternativeCostData
 
protected SCR_EntityCatalogEntry m_EntryParent
 
protected ref Resource m_ItemResource
 

Function Documentation

◆ BaseContainerCustomEnumWithValue()

SCR_ArsenalItem SCR_BaseEntityCatalogData BaseContainerCustomEnumWithValue ( SCR_EArsenalSupplyCostType  ,
"m_eAlternativeCostType"  ,
"m_iSupplyCost"  ,
"1"  ,
"%1 - Supply cost: %2"   
)

Definition at line 116 of file SCR_ArsenalItem.c.

◆ BaseContainerProps()

◆ GetDisplayDataOfType()

SCR_ArsenalItemDisplayData BaseContainerProps::GetDisplayDataOfType ( EArsenalItemDisplayType  displayType)

Get display data of given type for displaying items on arsenal display

Parameters
[in]displayTypetype of display data to find
Returns
Display data, can be null if not found

Definition at line 57 of file SCR_ArsenalItem.c.

◆ GetItemMode()

SCR_EArsenalItemMode BaseContainerProps::GetItemMode ( )
Returns

Definition at line 31 of file SCR_ArsenalItem.c.

◆ GetItemResource()

Resource BaseContainerProps::GetItemResource ( )
Returns

Definition at line 48 of file SCR_ArsenalItem.c.

◆ GetItemResourceName()

ResourceName BaseContainerProps::GetItemResourceName ( )
Returns

Definition at line 38 of file SCR_ArsenalItem.c.

◆ GetItemType()

SCR_EArsenalItemType BaseContainerProps::GetItemType ( )
Returns

Definition at line 24 of file SCR_ArsenalItem.c.

◆ GetSupplyCost()

int BaseContainerProps::GetSupplyCost ( SCR_EArsenalSupplyCostType  supplyCostType)

Get supply cost of arsenal 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

Definition at line 74 of file SCR_ArsenalItem.c.

◆ InitData()

override void BaseContainerProps::InitData ( notnull SCR_EntityCatalogEntry  entry)

Definition at line 87 of file SCR_ArsenalItem.c.

Variable Documentation

◆ m_aArsenalAlternativeCostData

protected ref array<ref SCR_ArsenalAlternativeCostData> m_aArsenalAlternativeCostData

Definition at line 15 of file SCR_ArsenalItem.c.

◆ m_aArsenalDisplayData

protected ref array<ref SCR_ArsenalItemDisplayData> m_aArsenalDisplayData

Definition at line 12 of file SCR_ArsenalItem.c.

◆ m_eItemMode

protected SCR_EArsenalItemMode m_eItemMode

Definition at line 6 of file SCR_ArsenalItem.c.

◆ m_eItemType

protected SCR_EArsenalItemType m_eItemType

Definition at line 3 of file SCR_ArsenalItem.c.

◆ m_EntryParent

protected SCR_EntityCatalogEntry m_EntryParent

Definition at line 19 of file SCR_ArsenalItem.c.

◆ m_iSupplyCost

protected int m_iSupplyCost

Definition at line 9 of file SCR_ArsenalItem.c.

◆ m_ItemResource

protected ref Resource m_ItemResource

Definition at line 20 of file SCR_ArsenalItem.c.

◆ m_mArsenalAlternativeCostData

protected ref map<SCR_EArsenalSupplyCostType, int> m_mArsenalAlternativeCostData

Definition at line 17 of file SCR_ArsenalItem.c.