Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorModeHintCondition.c
Go to the documentation of this file.
1 [BaseContainerProps(), SCR_BaseContainerHintCondition()]
3 {
4  [Attribute()]
5  private bool m_bIsLimited;
6 
7  //------------------------------------------------------------------------------------------------
8  protected void OnModePostActivate()
9  {
10  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
11  if (editorManager && editorManager.IsLimited() == m_bIsLimited)
12  Activate();
13  }
14 
15  //------------------------------------------------------------------------------------------------
16  override protected void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
17  {
18  SCR_EditorModeEntity mode = editorManager.GetCurrentModeEntity();
19  if (mode)
20  mode.GetOnPostActivate().Insert(OnModePostActivate);
21  }
22 
23  //------------------------------------------------------------------------------------------------
24  override protected void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
25  {
26  Deactivate();
27 
28  SCR_EditorModeEntity mode = editorManager.GetCurrentModeEntity();
29  if (mode)
30  mode.GetOnPostActivate().Remove(OnModePostActivate);
31  }
32 }
SCR_BaseEditorHintCondition
Definition: SCR_BaseEditorHintCondition.c:2
SCR_EditorModeHintCondition
Definition: SCR_EditorModeHintCondition.c:2
SCR_EditorModeEntity
Definition: SCR_EditorModeEntity.c:22
Attribute
typedef Attribute
Post-process effect of scripted camera.
Deactivate
protected void Deactivate()
Definition: SCR_BaseHintCondition.c:27
Activate
protected void Activate()
Definition: SCR_BaseHintCondition.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
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26