Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
EditablePrefabsComponent_PreviewEntity.c
Go to the documentation of this file.
1#ifdef WORKBENCH
3class EditablePrefabsComponent_PreviewEntity : EditablePrefabsComponent_Base
4{
5 [Attribute("1", desc: "When enabled, preview prefab can be used also in runtime, not only when spawning from prefab.")]
6 protected bool m_bRuntime;
7
8 //------------------------------------------------------------------------------------------------
9 override void EOnCreate(EditablePrefabsConfig config, WorldEditorAPI api, ResourceName prefab, string targetPath, IEntitySource entitySource, IEntitySource instanceEntitySource, IEntityComponentSource componentSource, IEntityComponentSource componentCurrent)
10 {
11 SCR_PreviewEntityComponent.GeneratePreviewEntries(api, entitySource);
12 api.SetVariableValue(entitySource, { ContainerIdPathEntry(componentSource.GetClassName()) }, "m_bRuntime", m_bRuntime.ToString());
13 }
14}
15#endif // WORKBENCH
void ContainerIdPathEntry(string propertyName, int index=-1)
Definition worldEditor.c:30
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_CampaignMilitaryBaseComponent SCR_MilitaryBaseComponent SCR_BaseContainerCustomTitleResourceName("m_sBaseName", true)
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute