Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MedicalItemsCountCondition.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
3
[
BaseContainerProps
()]
4
class
SCR_MedicalItemsCountCondition
:
SCR_AvailableActionCondition
5
{
6
[
Attribute
(
"3"
, UIWidgets.ComboBox,
"Cond operator"
,
""
, ParamEnumArray.FromEnum(
SCR_ComparerOperator
) )]
7
private
SCR_ComparerOperator
m_eOperator;
8
9
[
Attribute
(
"1"
, UIWidgets.EditBox,
"Desired count of items to check"
,
""
)]
10
private
int
m_iValue;
11
12
[
Attribute
(
"0"
, UIWidgets.CheckBox,
"True - condition pass only if medical is equiped in quick slot | False - whole inventory"
)]
13
protected
bool
m_bMustBeInQuickSlots;
14
15
//------------------------------------------------------------------------------------------------
18
override
bool
IsAvailable(
SCR_AvailableActionsConditionData
data
)
19
{
20
if
(!
data
)
21
return
false
;
22
23
int
count =
data
.GetMedicalItemCount();
24
if
(m_bMustBeInQuickSlots)
25
count =
data
.GetMedicalItemCountInQuickSlots();
26
27
bool
result =
false
;
28
29
result = SCR_Comparer<int>.Compare(m_eOperator, count, (
int
)
m_iValue
);
30
return
GetReturnResult(result);
31
}
32
};
SCR_AvailableActionsConditionData
Definition:
SCR_AvailableActionsConditionData.c:5
m_iValue
protected int m_iValue
Definition:
SCR_VotingBase.c:3
SCR_AvailableActionCondition
A single available action condition representation.
Definition:
SCR_AvailableActionsCondition.c:3
SCR_ComparerOperator
SCR_ComparerOperator
Definition:
SCR_Comparer.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
data
Get all prefabs that have the spawner data
Definition:
SCR_EntityCatalogManagerComponent.c:305
SCR_MedicalItemsCountCondition
Returns true if count of medical items matches the condition.
Definition:
SCR_MedicalItemsCountCondition.c:4
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Character
SCR_MedicalItemsCountCondition.c
Generated by
1.8.17