Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SendOrder.c
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Generated from class: SCR_AIOrder_Stance
4 {
5  [Attribute("", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(ECharacterStance))]
6  ECharacterStance m_eStance;
7 
8  protected static ref TStringArray _s_aVarsIn =
9  {
10  SCR_AISendOrderGenerated.PORT_RECEIVER,
11  "Stance"
12  };
13  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
14 
15  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
16  {
17  AIAgent receiver = GetReceiverAgent(owner);
19 
20  msg.SetText(m_sText);
21 
22  if(!GetVariableIn("Stance", msg.m_eStance))
23  msg.m_eStance = m_eStance;
24 
25  if (SendMessage(owner, receiver, msg))
26  return ENodeResult.SUCCESS;
27  else
28  return ENodeResult.FAIL;
29  }
30 
31  override string GetNodeMiddleText()
32  {
33  string s;
34  s = s + string.Format("m_eStance: %1\n", typename.EnumToString(ECharacterStance, m_eStance));
35  return s;
36  }
37  override bool VisibleInPalette() { return true; }
38 }
39 
40 //---------------------------------------------------------------------------------------
41 // Generated from class: SCR_AIOrder_WeaponRaised
42 class SCR_AISendOrder_WeaponRaised : SCR_AISendMessageGenerated
43 {
44  [Attribute("", UIWidgets.Auto)]
45  bool m_bWeaponRaised;
46 
47  protected static ref TStringArray _s_aVarsIn =
48  {
49  SCR_AISendOrderGenerated.PORT_RECEIVER,
50  "WeaponRaised"
51  };
52  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
53 
54  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
55  {
56  AIAgent receiver = GetReceiverAgent(owner);
58 
59  msg.SetText(m_sText);
60 
61  if(!GetVariableIn("WeaponRaised", msg.m_bWeaponRaised))
62  msg.m_bWeaponRaised = m_bWeaponRaised;
63 
64  if (SendMessage(owner, receiver, msg))
65  return ENodeResult.SUCCESS;
66  else
67  return ENodeResult.FAIL;
68  }
69 
70  override string GetNodeMiddleText()
71  {
72  string s;
73  s = s + string.Format("m_bWeaponRaised: %1\n", m_bWeaponRaised);
74  return s;
75  }
76  override bool VisibleInPalette() { return true; }
77 }
78 
79 //---------------------------------------------------------------------------------------
80 // Generated from class: SCR_AIOrder_MovementType
82 {
83  [Attribute("", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EMovementType))]
84  EMovementType m_eMovementType;
85 
86  protected static ref TStringArray _s_aVarsIn =
87  {
88  SCR_AISendOrderGenerated.PORT_RECEIVER,
89  "MovementType"
90  };
91  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
92 
93  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
94  {
95  AIAgent receiver = GetReceiverAgent(owner);
97 
98  msg.SetText(m_sText);
99 
100  if(!GetVariableIn("MovementType", msg.m_eMovementType))
101  msg.m_eMovementType = m_eMovementType;
102 
103  if (SendMessage(owner, receiver, msg))
104  return ENodeResult.SUCCESS;
105  else
106  return ENodeResult.FAIL;
107  }
108 
109  override string GetNodeMiddleText()
110  {
111  string s;
112  s = s + string.Format("m_eMovementType: %1\n", typename.EnumToString(EMovementType, m_eMovementType));
113  return s;
114  }
115  override bool VisibleInPalette() { return true; }
116 }
117 
118 //---------------------------------------------------------------------------------------
119 // Generated from class: SCR_AIOrder_ReturnToDefault
120 class SCR_AISendOrder_ReturnToDefault : SCR_AISendMessageGenerated
121 {
122  protected static ref TStringArray _s_aVarsIn =
123  {
124  SCR_AISendOrderGenerated.PORT_RECEIVER
125  };
126  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
127 
128  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
129  {
130  AIAgent receiver = GetReceiverAgent(owner);
132 
133  msg.SetText(m_sText);
134 
135  if (SendMessage(owner, receiver, msg))
136  return ENodeResult.SUCCESS;
137  else
138  return ENodeResult.FAIL;
139  }
140 
141  override bool VisibleInPalette() { return true; }
142 }
143 
144 //---------------------------------------------------------------------------------------
145 // Generated from class: SCR_AIOrder_WeaponType
147 {
148  [Attribute("", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EWeaponType))]
149  EWeaponType m_eWeaponType;
150 
151  protected static ref TStringArray _s_aVarsIn =
152  {
153  SCR_AISendOrderGenerated.PORT_RECEIVER,
154  "WeaponType"
155  };
156  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
157 
158  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
159  {
160  AIAgent receiver = GetReceiverAgent(owner);
162 
163  msg.SetText(m_sText);
164 
165  if(!GetVariableIn("WeaponType", msg.m_eWeaponType))
166  msg.m_eWeaponType = m_eWeaponType;
167 
168  if (SendMessage(owner, receiver, msg))
169  return ENodeResult.SUCCESS;
170  else
171  return ENodeResult.FAIL;
172  }
173 
174  override string GetNodeMiddleText()
175  {
176  string s;
177  s = s + string.Format("m_eWeaponType: %1\n", typename.EnumToString(EWeaponType, m_eWeaponType));
178  return s;
179  }
180  override bool VisibleInPalette() { return true; }
181 }
182 
183 //---------------------------------------------------------------------------------------
184 // Generated from class: SCR_AIOrder_AIState
185 class SCR_AISendOrder_AIState : SCR_AISendMessageGenerated
186 {
187  [Attribute("", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EUnitAIState))]
188  EUnitAIState m_eAIState;
189 
190  protected static ref TStringArray _s_aVarsIn =
191  {
192  SCR_AISendOrderGenerated.PORT_RECEIVER,
193  "AIState"
194  };
195  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
196 
197  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
198  {
199  AIAgent receiver = GetReceiverAgent(owner);
201 
202  msg.SetText(m_sText);
203 
204  if(!GetVariableIn("AIState", msg.m_eAIState))
205  msg.m_eAIState = m_eAIState;
206 
207  if (SendMessage(owner, receiver, msg))
208  return ENodeResult.SUCCESS;
209  else
210  return ENodeResult.FAIL;
211  }
212 
213  override string GetNodeMiddleText()
214  {
215  string s;
216  s = s + string.Format("m_eAIState: %1\n", typename.EnumToString(EUnitAIState, m_eAIState));
217  return s;
218  }
219  override bool VisibleInPalette() { return true; }
220 }
221 
222 //---------------------------------------------------------------------------------------
223 // Generated from class: SCR_AIOrder_Unit_State
225 {
226  [Attribute("", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EUnitState))]
227  EUnitState m_eUnitState;
228 
229  protected static ref TStringArray _s_aVarsIn =
230  {
231  SCR_AISendOrderGenerated.PORT_RECEIVER,
232  "UnitState"
233  };
234  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
235 
236  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
237  {
238  AIAgent receiver = GetReceiverAgent(owner);
240 
241  msg.SetText(m_sText);
242 
243  if(!GetVariableIn("UnitState", msg.m_eUnitState))
244  msg.m_eUnitState = m_eUnitState;
245 
246  if (SendMessage(owner, receiver, msg))
247  return ENodeResult.SUCCESS;
248  else
249  return ENodeResult.FAIL;
250  }
251 
252  override string GetNodeMiddleText()
253  {
254  string s;
255  s = s + string.Format("m_eUnitState: %1\n", typename.EnumToString(EUnitState, m_eUnitState));
256  return s;
257  }
258  override bool VisibleInPalette() { return true; }
259 }
260 
261 //---------------------------------------------------------------------------------------
262 // Generated from class: SCR_AIOrder_CombatType
263 class SCR_AISendOrder_CombatType : SCR_AISendMessageGenerated
264 {
265  [Attribute("", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EAICombatType))]
266  EAICombatType m_eCombatType;
267 
268  protected static ref TStringArray _s_aVarsIn =
269  {
270  SCR_AISendOrderGenerated.PORT_RECEIVER,
271  "CombatType"
272  };
273  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
274 
275  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
276  {
277  AIAgent receiver = GetReceiverAgent(owner);
279 
280  msg.SetText(m_sText);
281 
282  if(!GetVariableIn("CombatType", msg.m_eCombatType))
283  msg.m_eCombatType = m_eCombatType;
284 
285  if (SendMessage(owner, receiver, msg))
286  return ENodeResult.SUCCESS;
287  else
288  return ENodeResult.FAIL;
289  }
290 
291  override string GetNodeMiddleText()
292  {
293  string s;
294  s = s + string.Format("m_eCombatType: %1\n", typename.EnumToString(EAICombatType, m_eCombatType));
295  return s;
296  }
297  override bool VisibleInPalette() { return true; }
298 }
299 
SCR_AIOrder_Stance
Definition: SCR_AIOrder.c:36
SCR_AIOrder_Unit_State
Definition: SCR_AIOrder.c:190
SCR_AIOrder_MovementType
Definition: SCR_AIOrder.c:96
SCR_AIOrder_CombatType
Definition: SCR_AIOrder.c:216
GetNodeMiddleText
override string GetNodeMiddleText()
Definition: SendOrder.c:28
VisibleInPalette
override bool VisibleInPalette()
Definition: SendOrder.c:34
EMovementType
EMovementType
Definition: EMovementType.c:12
ECharacterStance
ECharacterStance
Definition: ECharacterStance.c:12
SCR_AISendOrder_MovementType
Definition: SendOrder.c:81
EOnTaskSimulate
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
Definition: SendOrder.c:12
_s_aVarsIn
SCR_AISendInfoMessage_Target _s_aVarsIn
Definition: SendOrder.c:47
SCR_AIOrder_ReturnToDefault
Definition: SCR_AIOrder.c:122
Attribute
SCR_AISendOrder_Stance SCR_AISendMessageGenerated Attribute("", UIWidgets.Auto)] bool m_bWeaponRaised
SCR_AISendOrder_UnitState
Definition: SendOrder.c:224
SCR_AIOrder_WeaponType
Definition: SCR_AIOrder.c:138
m_eStance
SCR_AICombatMoveRequest_ChangeStanceInCover m_eStance
m_eUnitState
EUnitState m_eUnitState
Definition: SendOrder.c:221
m_eMovementType
EMovementType m_eMovementType
Definition: SCR_AICombatMoveRequest.c:84
SCR_AISendOrderGenerated
Definition: SCR_AISendOrderGenerated.c:1
m_eWeaponType
EWeaponType m_eWeaponType
Definition: SendOrder.c:143
SendMessage
void SendMessage(AICommunicationComponent comms, SCR_AIActivityBase activity, vector position, float delay)
Definition: SCR_AIActivitySmokeCoverFeature.c:77
SCR_AISendMessageGenerated
Definition: SCR_AISendMessageGenerated.c:1
SCR_AIOrder_WeaponRaised
Definition: SCR_AIOrder.c:69
SCR_AISendOrder_WeaponType
Definition: SendOrder.c:146
EWeaponType
EWeaponType
Definition: EWeaponType.c:12
SCR_AISendOrder_Stance
Definition: SendOrder.c:3
GetVariablesIn
override TStringArray GetVariablesIn()
Definition: SendOrder.c:10
SCR_AIOrder_AIState
Definition: SCR_AIOrder.c:164
m_sText
class SCR_BaseEditorAttribute m_sText