Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorBudgetHintCondition.c
Go to the documentation of this file.
1 [BaseContainerProps(), SCR_BaseContainerHintCondition()]
3 {
4  //------------------------------------------------------------------------------------------------
5  protected void OnBudgetMaxReached(EEditableEntityBudget budgetType, bool maxReached)
6  {
7  Activate();
8  }
9 
10  //------------------------------------------------------------------------------------------------
11  override protected void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
12  {
14  if (budgetManager)
15  budgetManager.Event_OnBudgetMaxReached.Insert(OnBudgetMaxReached);
16  }
17 
18  //------------------------------------------------------------------------------------------------
19  override protected void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
20  {
22  if (budgetManager)
23  budgetManager.Event_OnBudgetMaxReached.Remove(OnBudgetMaxReached);
24  }
25 }
SCR_BaseEditorHintCondition
Definition: SCR_BaseEditorHintCondition.c:2
EEditableEntityBudget
EEditableEntityBudget
Definition: EEditableEntityBudget.c:1
SCR_BudgetEditorComponent
Definition: SCR_BudgetEditorComponent.c:18
Activate
protected void Activate()
Definition: SCR_BaseHintCondition.c:9
SCR_EditorBudgetHintCondition
Definition: SCR_EditorBudgetHintCondition.c:2
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