Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ArsenalItemCountConfig Class Reference

Protected Member Functions

SCR_EArsenalItemType GetItemType ()
int GetMaxItemCount ()

Static Protected Member Functions

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

Protected Attributes

SCR_EArsenalItemType m_ItemType
int m_MaxItemCount

Detailed Description

Definition at line 2 of file SCR_ArsenalItemCountConfig.c.

Member Function Documentation

◆ CheckMaxCount()

bool SCR_ArsenalItemCountConfig::CheckMaxCount ( array< ref SCR_ArsenalItemCountConfig > maxItemCounts,
SCR_EArsenalItemType itemType,
int currentCountTaken )
inlinestaticprotected

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

Definition at line 32 of file SCR_ArsenalItemCountConfig.c.

◆ GetItemType()

SCR_EArsenalItemType SCR_ArsenalItemCountConfig::GetItemType ( )
inlineprotected
Returns

Definition at line 12 of file SCR_ArsenalItemCountConfig.c.

◆ GetMaxItemCount()

int SCR_ArsenalItemCountConfig::GetMaxItemCount ( )
inlineprotected
Returns

Definition at line 19 of file SCR_ArsenalItemCountConfig.c.

Member Data Documentation

◆ m_ItemType

SCR_EArsenalItemType SCR_ArsenalItemCountConfig::m_ItemType
protected

Definition at line 5 of file SCR_ArsenalItemCountConfig.c.

◆ m_MaxItemCount

int SCR_ArsenalItemCountConfig::m_MaxItemCount
protected

Definition at line 8 of file SCR_ArsenalItemCountConfig.c.


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