Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorBaseEntity.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/Editor", description: "Core Editor manager", color: "251 91 0 255")]
2 class SCR_EditorBaseEntityClass: GenericEntityClass
3 {
4 };
5 
15 {
19 
24  ScriptInvoker GetOnInit()
25  {
26  return null;
27  }
32  ScriptInvoker GetOnRequest()
33  {
34  return null;
35  }
40  ScriptInvoker GetOnOpened()
41  {
42  return null;
43  }
48  ScriptInvoker GetOnPreActivate()
49  {
50  return null;
51  }
56  ScriptInvoker GetOnActivate()
57  {
58  return null;
59  }
64  ScriptInvoker GetOnPostActivate()
65  {
66  return null;
67  }
72  ScriptInvoker GetOnDeactivate()
73  {
74  return null;
75  }
80  ScriptInvoker GetOnClosed()
81  {
82  return null;
83  }
88  ScriptInvoker GetOnDebug()
89  {
90  return null;
91  }
93 
97 
102  ScriptInvoker GetOnOpenedServer()
103  {
104  return null;
105  }
110  ScriptInvoker GetOnOpenedServerCallback()
111  {
112  return null;
113  }
118  ScriptInvoker GetOnClosedServer()
119  {
120  return null;
121  }
126  ScriptInvoker GetOnClosedServerCallback()
127  {
128  return null;
129  }
134  ScriptInvoker GetOnActivateServer()
135  {
136  return null;
137  }
142  ScriptInvoker GetOnDeactivateServer()
143  {
144  return null;
145  }
147 
152  bool IsOpened()
153  {
154  return false;
155  }
160  SCR_EditorManagerEntity GetManager()
161  {
162  return null;
163  }
169  int FindEditorComponents(out array<SCR_BaseEditorComponent> outComponents)
170  {
171  if (!outComponents) outComponents = {};
172  array<Managed> components = {};
173  for (int i = 0, count = FindComponents(SCR_BaseEditorComponent, components); i < count; i++)
174  {
175  outComponents.Insert(SCR_BaseEditorComponent.Cast(components[i]));
176  }
177  return outComponents.Count();
178  }
179 
180  protected void InitComponents(bool isServer)
181  {
182  array<Managed> components = {};
183  for (int i = 0, count = FindComponents(SCR_BaseEditorComponent, components); i < count; i++)
184  {
185  InitComponent(SCR_BaseEditorComponent.Cast(components[i]), isServer);
186  }
187  }
188  protected void InitComponent(SCR_BaseEditorComponent component, bool isServer)
189  {
190  if (isServer)
191  component.InitServer();
192  else
193  component.InitOwner();
194 
195  //--- Initialize sub-components
196  array<GenericComponent> components = {};
197  int componentsCount = component.FindComponents(SCR_BaseEditorComponent, components);
198  for (int i = 0; i < componentsCount; i++)
199  {
200  InitComponent(SCR_BaseEditorComponent.Cast(components[i]), isServer);
201  }
202  }
203 };
SCR_EditorBaseEntityClass
Definition: SCR_EditorBaseEntity.c:2
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
SCR_BaseEditorComponent
Definition: SCR_BaseEditorComponent.c:119
SCR_EditorBaseEntity
Definition: SCR_EditorBaseEntity.c:14
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26