Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorEntityToEntityHintCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
(), SCR_BaseContainerHintCondition()]
2
class
SCR_EditorEntityToEntityHintCondition
:
SCR_BaseEditorHintCondition
3
{
4
//[Attribute("-1", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EEditableEntityType))]
5
//protected EEditableEntityType m_EditedType;
6
7
[
Attribute
(
"-1"
, uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(
EEditableEntityType
))]
8
protected
EEditableEntityType
m_TargetType;
9
10
//------------------------------------------------------------------------------------------------
11
protected
void
OnTargetChange(
SCR_EditableEntityComponent
target)
12
{
13
if
(target)
14
{
15
if
(target.GetEntityType() == m_TargetType)
16
Activate
();
17
}
18
else
19
{
20
Deactivate
();
21
}
22
}
23
24
//------------------------------------------------------------------------------------------------
25
override
protected
void
OnInitConditionEditor(
SCR_EditorManagerEntity
editorManager)
26
{
27
SCR_PreviewEntityEditorComponent
previewManager =
SCR_PreviewEntityEditorComponent
.Cast(
SCR_PreviewEntityEditorComponent
.GetInstance(
SCR_PreviewEntityEditorComponent
));
28
if
(previewManager)
29
previewManager.GetOnTargetChange().Insert(OnTargetChange);
30
}
31
32
//------------------------------------------------------------------------------------------------
33
override
protected
void
OnExitConditionEditor(
SCR_EditorManagerEntity
editorManager)
34
{
35
SCR_PreviewEntityEditorComponent
previewManager =
SCR_PreviewEntityEditorComponent
.Cast(
SCR_PreviewEntityEditorComponent
.GetInstance(
SCR_PreviewEntityEditorComponent
));
36
if
(previewManager)
37
previewManager.GetOnTargetChange().Remove(OnTargetChange);
38
}
39
}
SCR_BaseEditorHintCondition
Definition:
SCR_BaseEditorHintCondition.c:2
SCR_EditorEntityToEntityHintCondition
Definition:
SCR_EditorEntityToEntityHintCondition.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
EEditableEntityType
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
Definition:
EEditableEntityType.c:5
Deactivate
protected void Deactivate()
Definition:
SCR_BaseHintCondition.c:27
Activate
protected void Activate()
Definition:
SCR_BaseHintCondition.c:9
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
SCR_PreviewEntityEditorComponent
Definition:
SCR_PreviewEntityEditorComponent.c:12
SCR_EditorManagerEntity
Definition:
SCR_EditorManagerEntity.c:26
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Components
Hints
HintConditions
SCR_EditorEntityToEntityHintCondition.c
Generated by
1.8.17