Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIGroupConditionManager.c
Go to the documentation of this file.
3{
4 [Attribute()]
5 protected ref array<ref SCR_AIGroupConditionCheck> m_aChecks;
6
7 protected bool m_bIsGroupAvailable;
8
10
11 //------------------------------------------------------------------------------------------------
19
20 //------------------------------------------------------------------------------------------------
22 {
23 foreach (SCR_AIGroupConditionCheck check : m_aChecks)
24 {
25 if (check.Type() == type)
26 return check;
27 }
28
29 return null;
30 }
31
32 //------------------------------------------------------------------------------------------------
34 {
35 if (m_aChecks.Contains(check))
36 return;
37
38 m_aChecks.Insert(check);
39 }
40
41 //------------------------------------------------------------------------------------------------
46 {
47 foreach (SCR_AIGroupConditionCheck check : m_aChecks)
48 {
49 if (!check.CheckCondition(group))
50 {
51 SetIsAvailable(false);
53 }
54 }
55
56 SetIsAvailable(true);
58 }
59
60 //------------------------------------------------------------------------------------------------
62 {
64 }
65
66 //------------------------------------------------------------------------------------------------
67 protected void SetIsAvailable(bool value)
68 {
69 if (m_bIsGroupAvailable == value)
70 return;
71
72 m_bIsGroupAvailable = value;
73
76 }
77
78 //------------------------------------------------------------------------------------------------
80 {
81 if (!m_aChecks)
82 m_aChecks = {};
83 }
84}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
EDamageType type
ScriptInvokerBase< ScriptInvokerBoolMethod > ScriptInvokerBool
ref array< ref SCR_AIGroupConditionCheck > m_aChecks
ScriptInvokerBool GetOnAIGroupAvailabilityChanged()
SCR_AIGroupConditionCheck GetCheck(typename type)
ref ScriptInvokerBool m_OnAIGroupAvailabilityChanged
bool IsAIGroupAvailable(SCR_AIGroup group)
void AddCheck(notnull SCR_AIGroupConditionCheck check)
SCR_FieldOfViewSettings Attribute