Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorCanEnterLayerActionCondition.c
Go to the documentation of this file.
1
3
[
BaseContainerProps
(),
BaseContainerCustomStringTitleField
(
"Can Enter Layer"
)]
4
class
SCR_EditorCanEnterLayerActionCondition
:
SCR_AvailableActionCondition
5
{
6
7
SCR_LayersEditorComponent
m_LayersManager;
8
9
override
bool
IsAvailable(
SCR_AvailableActionsConditionData
data
)
10
{
11
if
(!
data
)
12
return
false
;
13
14
SCR_EditableEntityComponent
entity =
SCR_BaseEditableEntityFilter
.GetFirstEntity(
EEditableEntityState
.HOVER);
15
16
if
(!entity)
17
return
GetReturnResult(
false
);
18
19
if
(!
m_LayersManager
)
20
{
21
m_LayersManager
=
SCR_LayersEditorComponent
.Cast(
SCR_BaseEditorComponent
.GetInstance(
SCR_LayersEditorComponent
));
22
if
(!
m_LayersManager
)
23
return
false
;
24
}
25
26
return
m_LayersManager
.IsEditingLayersEnabled() && GetReturnResult(entity.CanEnterLayer(
m_LayersManager
));
27
}
28
};
EEditableEntityState
EEditableEntityState
Definition:
EEditableEntityState.c:37
SCR_AvailableActionsConditionData
Definition:
SCR_AvailableActionsConditionData.c:5
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition:
SCR_HitZoneGroupNameHolder.c:27
SCR_EditorCanEnterLayerActionCondition
Returns true if any hovered entity has children (returns false if not hovered entity)
Definition:
SCR_EditorCanEnterLayerActionCondition.c:4
SCR_AvailableActionCondition
A single available action condition representation.
Definition:
SCR_AvailableActionsCondition.c:3
SCR_BaseEditorComponent
Definition:
SCR_BaseEditorComponent.c:119
m_LayersManager
protected SCR_LayersEditorComponent m_LayersManager
Definition:
SCR_EntitiesToolbarEditorUIComponent.c:38
SCR_BaseEditableEntityFilter
Definition:
SCR_BaseEditableEntityFilter.c:13
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
SCR_LayersEditorComponent
Definition:
SCR_LayersEditorManager.c:11
data
Get all prefabs that have the spawner data
Definition:
SCR_EntityCatalogManagerComponent.c:305
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
UI
HUD
AvailableActions
Conditions
Editor
SCR_EditorCanEnterLayerActionCondition.c
Generated by
1.8.17