Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorOpenedActionCondition.c
Go to the documentation of this file.
4 {
5  [Attribute()]
6  protected bool m_ModeMustNotBeLimited;
7 
8  override bool IsAvailable(SCR_AvailableActionsConditionData data)
9  {
10  if (!data)
11  return false;
12 
13  //Editor not open
14  if (!SCR_EditorManagerEntity.IsOpenedInstance())
15  return GetReturnResult(false);
16 
17  //Editor is open and mode limted not important
18  if (!m_ModeMustNotBeLimited)
19  return GetReturnResult(true);
20 
21  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
22 
23  if (!editorManager)
24  return false;
25 
26  SCR_EditorModeEntity mode = editorManager.GetCurrentModeEntity();
27  if (!mode)
28  return false;
29 
30  if (!mode.IsLimited())
31  return GetReturnResult(true);
32  else
33  return GetReturnResult(false);
34  }
35 };
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
SCR_EditorModeEntity
Definition: SCR_EditorModeEntity.c:22
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
SCR_EditorOpenedActionCondition
Returns true when the editor is opened.
Definition: SCR_EditorOpenedActionCondition.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
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
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26