Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_HoveredEntityIsLockedActionComponent.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomStringTitleField
(
"Hovered entity is locked for editing (Free Roam Building)"
)]
2
class
SCR_HoveredEntityIsLockedActionComponent
:
SCR_AvailableActionCondition
3
{
4
override
bool
IsAvailable(
SCR_AvailableActionsConditionData
data
)
5
{
6
if
(!
data
)
7
return
false
;
8
9
SCR_EditableEntityComponent
entity =
SCR_BaseEditableEntityFilter
.GetFirstEntity(
EEditableEntityState
.HOVER);
10
if
(!entity)
11
return
false
;
12
13
SCR_EditorManagerEntity
editorManager =
SCR_EditorManagerEntity
.GetInstance();
14
if
(!editorManager)
15
return
false
;
16
17
if
(editorManager.GetCurrentMode() !=
EEditorMode
.BUILDING)
18
return
true
;
19
20
SCR_CampaignBuildingCompositionComponent compositionComponent = SCR_CampaignBuildingCompositionComponent.Cast(entity.GetOwner().FindComponent(SCR_CampaignBuildingCompositionComponent));
21
if
(!compositionComponent)
22
return
true
;
23
24
return
GetReturnResult(compositionComponent.IsInteractionLocked());
25
}
26
}
EEditableEntityState
EEditableEntityState
Definition:
EEditableEntityState.c:37
SCR_AvailableActionsConditionData
Definition:
SCR_AvailableActionsConditionData.c:5
SCR_HoveredEntityIsLockedActionComponent
Definition:
SCR_HoveredEntityIsLockedActionComponent.c:2
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition:
SCR_HitZoneGroupNameHolder.c:27
SCR_AvailableActionCondition
A single available action condition representation.
Definition:
SCR_AvailableActionsCondition.c:3
SCR_BaseEditableEntityFilter
Definition:
SCR_BaseEditableEntityFilter.c:13
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
EEditorMode
EEditorMode
Editor mode that defines overall functionality.
Definition:
EEditorMode.c:5
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
SCR_EditorManagerEntity
Definition:
SCR_EditorManagerEntity.c:26
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
UI
HUD
AvailableActions
Conditions
Editor
SCR_HoveredEntityIsLockedActionComponent.c
Generated by
1.8.17