Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
SCR_ArsenalItemCountConfig Interface Reference

Public Member Functions

SCR_EArsenalItemType GetItemType ()
 
int GetMaxItemCount ()
 

Static Public Member Functions

static bool CheckMaxCount (array< ref SCR_ArsenalItemCountConfig > maxItemCounts, SCR_EArsenalItemType itemType, int currentCountTaken)
 Check if item type and current amount is valid for configured max count.
 

Protected Attributes

SCR_EArsenalItemType m_ItemType
 
int m_MaxItemCount
 

Member Function Documentation

◆ CheckMaxCount()

static bool SCR_ArsenalItemCountConfig.CheckMaxCount ( array< ref SCR_ArsenalItemCountConfig maxItemCounts,
SCR_EArsenalItemType  itemType,
int  currentCountTaken 
)
static

Check if item type and current amount is valid for configured max count.

Parameters
[in]maxItemCountsSource array with configured maximum count for specific SCR_EArsenalItemType
[in]itemTypeSCR_EArsenalItemType of the item to check
[in]currentCountTakenCurrent amount of times this item has been taken
Returns
True when item does not have a max count configured, or is below max, false if array is null

◆ GetItemType()

SCR_EArsenalItemType SCR_ArsenalItemCountConfig.GetItemType ( )
Returns

◆ GetMaxItemCount()

int SCR_ArsenalItemCountConfig.GetMaxItemCount ( )
Returns

Member Data Documentation

◆ m_ItemType

SCR_EArsenalItemType SCR_ArsenalItemCountConfig.m_ItemType
protected

◆ m_MaxItemCount

int SCR_ArsenalItemCountConfig.m_MaxItemCount
protected

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