Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FactionWarningManagerEditorComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Editor", description: "", icon: "WBData/ComponentEditorProps/componentEditor.png")]
3 {
4 };
5 
10 {/*
11  protected bool m_bIsListeningToEvents;
12  protected SCR_BaseTaskManager m_TaskManager;
13 
14 
15  protected override void EOnEditorInit()
16  {
17  if (RplSession.Mode() == RplMode.Client) return;
18 
19  m_TaskManager = SCR_BaseTaskManager.GetInstance();
20  Print(m_TaskManager);
21  }
22 
23 
24 
25  protected void SetServerHandler(bool listenToEvents)
26  {
27  if (RplSession.Mode() == RplMode.Client || m_bIsListeningToEvents == listenToEvents || !m_TaskManager) return;
28 
29 
30  if (listenToEvents)
31  {
32  m_TaskManager.s_OnTaskUpdate.Insert(OnFactionTaskChanged);
33  m_TaskManager.s_OnTaskDeleted.Insert(OnFactionTaskChanged);
34  }
35  else
36  {
37  m_TaskManager.s_OnTaskUpdate.Remove(OnFactionTaskChanged);
38  m_TaskManager.s_OnTaskDeleted.Remove(OnFactionTaskChanged);
39  }
40 
41  m_bIsListeningToEvents = listenToEvents;
42  }
43 
44  protected void OnSpawnPointChanged()
45  {
46 
47  }
48 
49  protected void OnTaskChanged(SCR_BaseTask task)
50  {
51 
52  }
53 
54 
55  override void EOnEditorOpenServer()
56  {
57  SetServerHandler(true);
58  }
59  override void EOnEditorCloseServer()
60  {
61  SetServerHandler(false);
62  }
63 
64  protected override void OnDelete(IEntity owner)
65  {
66  SetServerHandler(false);
67  }*/
68 };
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
SCR_FactionWarningManagerEditorComponentClass
Definition: SCR_FactionWarningManagerEditorComponent.c:2
SCR_BaseEditorComponent
Definition: SCR_BaseEditorComponent.c:119
SCR_BaseEditorComponentClass
Definition: SCR_BaseEditorComponent.c:2
SCR_FactionWarningManagerEditorComponent
Definition: SCR_FactionWarningManagerEditorComponent.c:9
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180