Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EntityCatalogEntryNonEditable.c
Go to the documentation of this file.
1 
4 [BaseContainerProps(), BaseContainerCustomStringTitleField("DO NOT USE THIS CLASS - It is unable to obtain UIInfo (Use inherit versions)!")]
6 {
7  [Attribute(desc: "Set the labels for the non-editable entity. NOTE! Only use this when the Prefab is non-editable otherwise it will take these labels instead of the EditableEntity Labels on the prefab. If this is required add your own Labels to a custom SCR_BaseEntityCatalogData to prevent breaking data for others", uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(EEditableEntityLabel))]
8  protected ref array<EEditableEntityLabel> m_aLabels;
9 
10  //======================================== LABELS ========================================\\
11  //--------------------------------- Get all Labels ---------------------------------\\
12  override int GetEditableEntityLabels(notnull out array<EEditableEntityLabel> editableEntityLables)
13  {
14  editableEntityLables.Copy(m_aLabels);
15  return editableEntityLables.Count();
16  }
17 
18  //--------------------------------- Has Label ---------------------------------\\
19  override bool HasEditableEntityLabel(EEditableEntityLabel editableEntityLabel)
20  {
21  return m_aLabels.Contains(editableEntityLabel);
22  }
23 
24  //--------------------------------- Has Any label ---------------------------------\\
25  override bool HasAnyEditableEntityLabels(notnull array<EEditableEntityLabel> editableEntityLables)
26  {
27  foreach (EEditableEntityLabel label: editableEntityLables)
28  {
29  if (HasEditableEntityLabel(label))
30  return true;
31  }
32 
33  return false;
34  }
35 
36  //--------------------------------- Has all labels ---------------------------------\\
37  override bool HasAllEditableEntityLabels(notnull array<EEditableEntityLabel> editableEntityLables)
38  {
39  foreach (EEditableEntityLabel label: editableEntityLables)
40  {
41  if (!HasEditableEntityLabel(label))
42  return false;
43  }
44 
45  return true;
46  }
47 
48  //--------------------------------- Class Specific Init ---------------------------------\\
49  //~ Base NonEditable has no class specific init
50  override void ClassSpecificInit()
51  {
52 
53  }
54 }
EEditableEntityLabel
EEditableEntityLabel
Definition: EEditableEntityLabel.c:1
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition: SCR_HitZoneGroupNameHolder.c:27
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_EntityCatalogEntryNonEditable
Definition: SCR_EntityCatalogEntryNonEditable.c:5
SCR_EntityCatalogEntry
Definition: SCR_EntityCatalogEntry.c:5
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