Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PlaceableEntitiesRegistry.c
Go to the documentation of this file.
4
9{
10 [Attribute("ArmaReforger", "When using EditableEntityCollector, plugin will be looking for valid prefabs only in this addon", "")]
11 private string m_sAddon;
12
13 [Attribute(params: "unregFolders", desc: "When using EditableEntityCollector, the list will be filled with all compatible prefabs at this directory.")]
14 private ResourceName m_sSourceDirectory;
15
16 [Attribute(defvalue: "1", desc: "When true, prefabs will appear in the content browser.\nWhen false, they will be hidden, but stil available for placing by other systems.")]
17 private bool m_bExposed;
18
19 [Attribute(params: "et", desc: "List of placeable prefabs.")]
20 private ref array<ResourceName> m_Prefabs;
21
26 ResourceName GetAddon()
27 {
28 return m_sAddon;
29 }
34 ResourceName GetSourceDirectory()
35 {
36 return m_sSourceDirectory;
37 }
42 bool IsExposed()
43 {
44 return m_bExposed;
45 }
50 array<ResourceName> GetPrefabs(bool onlyExposed = false)
51 {
52 if (onlyExposed && !m_bExposed)
53 {
54 //--- Return dummy array of the same size as prefabs array
55 //--- ToDo: Don't create dummy array, but store starting index
56 array<ResourceName> emptyPrefabs = {};
57 emptyPrefabs.Resize(m_Prefabs.Count());
58 return emptyPrefabs;
59 }
60 else
61 {
62 return m_Prefabs;
63 }
64 }
65
66 void SetPrefabs(notnull array<ResourceName> prefabs)
67 {
68 if (!m_Prefabs) m_Prefabs = new array<ResourceName>;
69 m_Prefabs.Copy(prefabs);
70 }
71
72 void AddPrefabs(notnull array<ResourceName> prefabs)
73 {
74 if (!m_Prefabs)
75 m_Prefabs = {};
76
77 foreach (ResourceName prefab: prefabs)
78 {
79 m_Prefabs.Insert(prefab)
80 }
81
82 }
83};
84
86{
87 override bool _WB_GetCustomTitle(BaseContainer source, out string title)
88 {
89 ResourceName sourceDirectory;
90 source.Get("m_sSourceDirectory", sourceDirectory);
91 title = sourceDirectory.GetPath();
92 return true;
93 }
94};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute