Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CameraDataEditorComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Editor", description: "Camera data per session. Works only with SCR_EditorBaseEntity!", icon: "WBData/ComponentEditorProps/componentEditor.png")]
3 {
4 };
5 
9 {
10  protected ref array<ref SCR_ManualCameraComponentSave> m_aSavedData;
11 
12  void SaveComponents(SCR_ManualCamera camera)
13  {
14  if (camera)
15  {
16  if (!m_aSavedData)
17  m_aSavedData = {};
18 
19  camera.SaveComponents(m_aSavedData);
20  }
21  }
22  void LoadComponents(SCR_ManualCamera camera)
23  {
24  if (m_aSavedData)
25  camera.LoadComponents(m_aSavedData);
26  }
27  bool IsSave()
28  {
29  return m_aSavedData != null;
30  }
31 };
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
SCR_ManualCamera
Definition: SCR_ManualCamera.c:16
SCR_CameraDataEditorComponentClass
Definition: SCR_CameraDataEditorComponent.c:2
SCR_BaseEditorComponent
Definition: SCR_BaseEditorComponent.c:119
SCR_CameraDataEditorComponent
Definition: SCR_CameraDataEditorComponent.c:8
SCR_BaseEditorComponentClass
Definition: SCR_BaseEditorComponent.c:2
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180