Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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}
EEditableEntityBudget
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
ref ScriptInvoker_EntityBudgetMaxReachedEvent Event_OnBudgetMaxReached
void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
void OnBudgetMaxReached(EEditableEntityBudget budgetType, bool maxReached)