Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorIsStateActionCondition.c
Go to the documentation of this file.
4 {
5 
6  [Attribute("0", UIWidgets.ComboBox, "", enums: ParamEnumArray.FromEnum(EEditorState))]
7  protected EEditorState m_EditorState;
8 
9  protected SCR_StatesEditorComponent m_StatesManager;
10 
11 
12  override bool IsAvailable(SCR_AvailableActionsConditionData data)
13  {
14  if (!data)
15  return false;
16 
17  if (!m_StatesManager)
18  {
20 
21  if (!m_StatesManager)
22  return true;
23  }
24 
25  return GetReturnResult(m_StatesManager.GetState() == m_EditorState);
26  }
27 };
m_StatesManager
private SCR_StatesEditorComponent m_StatesManager
Definition: SCR_AttributesManagerEditorComponent.c:65
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
EEditorState
EEditorState
Unique editor state.
Definition: EEditorState.c:5
SCR_EditorIsStateActionCondition
Returns true when editor state is the given state.
Definition: SCR_EditorIsStateActionCondition.c:3
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
Attribute
typedef Attribute
Post-process effect of scripted camera.
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
SCR_StatesEditorComponent
Definition: SCR_StatesEditorComponent.c:9
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