Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Check if entity has given label Prefab needs to be an editable entity param editableEntityLabel Label to check if entity has it return True if entity has the label *bool HasEditableEntityLabel(EEditableEntityLabel editableEntityLabel)
ref array< EEditableEntityLabel > m_aLabels
override void ClassSpecificInit()
SCR_FieldOfViewSettings Attribute