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_BaseEditorEffect.c
Go to the documentation of this file.
1
[
BaseContainerProps
(insertable:
false
)]
7
class
SCR_BaseEditorEffect
8
{
15
static
void
Activate
(array<ref SCR_BaseEditorEffect> effects,
SCR_BaseEditorComponent
editorComponent,
vector
position
=
vector
.Zero, set<SCR_EditableEntityComponent> entities = null)
16
{
17
if
(!effects)
return
;
18
19
SCR_EditorBaseEntity
owner =
SCR_EditorBaseEntity
.Cast(editorComponent.GetOwner());
20
if
(!owner)
return
;
21
22
SCR_EditorManagerEntity
manager = owner.GetManager();
23
if
(!manager)
return
;
24
25
//--- When attached to editor mode, ignore when the editor is opening or closing (ToDo: Parametrize?)
26
if
(owner != manager && manager.IsInTransition())
return
;
27
28
foreach
(
SCR_BaseEditorEffect
effect: effects)
29
{
30
if
(effect.EOnActivate(editorComponent,
position
, entities))
31
{
32
editorComponent.
OnEffectBase
(effect);
33
editorComponent.
GetOnEffect
().Invoke(effect);
34
}
35
}
36
}
37
protected
bool
EOnActivate
(
SCR_BaseEditorComponent
editorComponent,
vector
position
=
vector
.Zero, set<SCR_EditableEntityComponent> entities = null);
38
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
Activate
void Activate()
Definition
SCR_BaseHintCondition.c:97
position
vector position
Definition
SCR_DestructibleTreeV2.c:30
SCR_EditorManagerEntity
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Definition
SCR_EditorManagerEntity.c:2211
SCR_BaseEditorComponent
Definition
SCR_BaseEditorComponent.c:120
SCR_BaseEditorComponent::OnEffectBase
sealed void OnEffectBase(SCR_BaseEditorEffect effect)
Definition
SCR_BaseEditorComponent.c:352
SCR_BaseEditorComponent::GetOnEffect
ScriptInvoker GetOnEffect()
Definition
SCR_BaseEditorComponent.c:542
SCR_BaseEditorEffect
Definition
SCR_BaseEditorEffect.c:8
SCR_BaseEditorEffect::EOnActivate
bool EOnActivate(SCR_BaseEditorComponent editorComponent, vector position=vector.Zero, set< SCR_EditableEntityComponent > entities=null)
SCR_EditorBaseEntity
Definition
SCR_EditorBaseEntity.c:15
vector
Definition
vector.c:13
scripts
Game
Editor
Containers
Effects
SCR_BaseEditorEffect.c
Generated by
1.17.0