Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CharacterRadioCountCondition.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
4 
8 {
9  [Attribute("3", UIWidgets.ComboBox, "Cond operator", "", ParamEnumArray.FromEnum(SCR_ComparerOperator) )]
10  private SCR_ComparerOperator m_eOperator;
11 
12  [Attribute("0", UIWidgets.EditBox, "", "")]
13  private int m_iValue;
14 
15  //------------------------------------------------------------------------------------------------
16  override bool IsAvailable(SCR_AvailableActionsConditionData data)
17  {
18  if (!data)
19  return false;
20 
21  int count = data.GetCharacterRadiosCount();
22  bool result = SCR_Comparer<int>.Compare(m_eOperator, count, m_iValue);
23  return GetReturnResult(result);
24  }
25 };
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.
SCR_CharacterRadioCountCondition
Definition: SCR_CharacterRadioCountCondition.c:7
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
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