Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
EditablePrefabsComponent_Base.c
Go to the documentation of this file.
1#ifdef WORKBENCH
3class EditablePrefabsComponent_Base
4{
5 [Attribute(params: "ct")]
6 protected ResourceName m_Component;
7
8 protected string m_sClassname;
9
10 //------------------------------------------------------------------------------------------------
12 string GetClassName()
13 {
14 return m_sClassname;
15 }
16
17 //------------------------------------------------------------------------------------------------
25 IEntityComponentSource AddComponent(EditablePrefabsConfig config, WorldEditorAPI api, ResourceName prefab, string targetPath, IEntitySource entitySource)
26 {
27 return api.CreateComponent(entitySource, m_Component);
28 }
29
30 //------------------------------------------------------------------------------------------------
40 void EOnCreate(EditablePrefabsConfig config, WorldEditorAPI api, ResourceName prefab, string targetPath, IEntitySource entitySource, IEntitySource instanceEntitySource, IEntityComponentSource componentSource, IEntityComponentSource componentCurrent);
41
42 //------------------------------------------------------------------------------------------------
47 void EOnDelete(EditablePrefabsConfig config, WorldEditorAPI api, string prefabPath);
48
49 //------------------------------------------------------------------------------------------------
55 void EOnMove(EditablePrefabsConfig config, WorldEditorAPI api, string currentPath, string newPath);
56
57 //------------------------------------------------------------------------------------------------
58 // constructor
59 void EditablePrefabsComponent_Base()
60 {
61 if (m_Component.IsEmpty()) return;
62
63 //--- Misconfigured
64 Resource componentResource = Resource.Load(m_Component);
65 if (!componentResource.IsValid())
66 return;
67
68 BaseResourceObject componentBase = componentResource.GetResource();
69 if (!componentBase)
70 return;
71
72 BaseContainer componentContainer = componentBase.ToBaseContainer();
73 if (!componentContainer)
74 return;
75
76 m_sClassname = componentContainer.GetClassName();
77 }
78}
79#endif // WORKBENCH
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_CampaignMilitaryBaseComponent SCR_MilitaryBaseComponent SCR_BaseContainerCustomTitleResourceName("m_sBaseName", true)
SCR_FieldOfViewSettings Attribute