Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkGetArrayOfEntities.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkGetArrayOfEntities
:
SCR_ScenarioFrameworkGet
3
{
4
[
Attribute
(
desc
:
"Array of Getters that should return entity or array of entities"
)]
5
ref array<ref SCR_ScenarioFrameworkGet> m_aGetters;
6
7
protected
ref array<IEntity>
m_aEntities
= {};
8
9
//------------------------------------------------------------------------------------------------
10
override
SCR_ScenarioFrameworkParamBase
Get
()
11
{
12
m_aEntities
.Clear();
13
ProcessGetters
(
m_aEntities
);
14
15
return
new
SCR_ScenarioFrameworkParam<array<IEntity>>(
m_aEntities
);
16
}
17
18
//------------------------------------------------------------------------------------------------
20
void
ProcessGetters
(out notnull array<IEntity> aEntities)
21
{
22
IEntity
entity;
23
array<IEntity> entities = {};
24
foreach
(
SCR_ScenarioFrameworkGet
getter : m_aGetters)
25
{
26
SCR_ScenarioFrameworkParam<IEntity> entityWrapper = SCR_ScenarioFrameworkParam<IEntity>.Cast(getter.Get());
27
if
(entityWrapper)
28
{
29
entity = entityWrapper.GetValue();
30
if
(entity)
31
aEntities.Insert(entity);
32
}
33
else
34
{
35
SCR_ScenarioFrameworkParam<array<IEntity>> entityArrayWrapper = SCR_ScenarioFrameworkParam<array<IEntity>>.Cast(getter.Get());
36
if
(!entityArrayWrapper)
37
continue
;
38
39
entities = entityArrayWrapper.GetValue();
40
if
(entities && !entities.IsEmpty())
41
aEntities.InsertAll(entities);
42
}
43
}
44
}
45
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkGetArrayOfEntities
Definition
SCR_ScenarioFrameworkGetArrayOfEntities.c:3
SCR_ScenarioFrameworkGetArrayOfEntities::ProcessGetters
void ProcessGetters(out notnull array< IEntity > aEntities)
Definition
SCR_ScenarioFrameworkGetArrayOfEntities.c:20
SCR_ScenarioFrameworkGetArrayOfEntities::Get
override SCR_ScenarioFrameworkParamBase Get()
Definition
SCR_ScenarioFrameworkGetArrayOfEntities.c:10
SCR_ScenarioFrameworkGetArrayOfEntities::m_aEntities
ref array< IEntity > m_aEntities
Definition
SCR_ScenarioFrameworkGetArrayOfEntities.c:7
SCR_ScenarioFrameworkGet
Definition
SCR_ScenarioFrameworkGet.c:3
SCR_ScenarioFrameworkParamBase
Definition
SCR_ScenarioFrameworkParamBase.c:2
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
ActionGetters
SCR_ScenarioFrameworkGetArrayOfEntities.c
Generated by
1.17.0