6 override int GetParam()
8 return GetGame().GetPlayerController().GetPlayerId();
17 SCR_CampaignBuildingCompositionComponent compositionComponent = SCR_CampaignBuildingCompositionComponent.Cast(selectedEntity.GetOwner().FindComponent(SCR_CampaignBuildingCompositionComponent));
18 if (!compositionComponent || compositionComponent.IsInteractionLocked())
21 return super.CanBeShown(selectedEntity, cursorWorldPosition, flags);
27 if (!selectedEntity || !CanBeDeleted(selectedEntity))
30 return super.CanBePerformed(selectedEntity, cursorWorldPosition, flags);
34 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
36 if (!hoveredEntity || !CanBeDeleted(hoveredEntity))
39 super.Perform(hoveredEntity, cursorWorldPosition);
45 SCR_CampaignBuildingCompositionComponent compositionComponent = SCR_CampaignBuildingCompositionComponent.Cast(hoveredEntity.GetOwner().FindComponent(SCR_CampaignBuildingCompositionComponent));
46 if (!compositionComponent)
49 if (compositionComponent.IsInteractionLocked())
59 protected void SendNotification()
61 SCR_NotificationsComponent.SendLocal(
ENotification.EDITOR_COMPOSITION_UNDER_CONSTRUCTION);