|
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.
|
|
◆ 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] | maxItemCounts | Source array with configured maximum count for specific SCR_EArsenalItemType |
[in] | itemType | SCR_EArsenalItemType of the item to check |
[in] | currentCountTaken | Current 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 |
( |
| ) |
|
◆ GetMaxItemCount()
int SCR_ArsenalItemCountConfig.GetMaxItemCount |
( |
| ) |
|
◆ 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:
- Game/Components/Arsenal/SCR_ArsenalItemCountConfig.c