Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
arrowmanagerbase.c
Go to the documentation of this file.
2 {
3  const int VERSION = 1;
4  protected ref array<EntityAI> m_Arrows;
5 
6  void ArrowManagerBase()
7  {
8  m_Arrows = new array<EntityAI>();
9  }
10 
11  void AddArrow(EntityAI arrow)
12  {
13  m_Arrows.Insert(arrow);
14  }
15 
16  void RemoveArrow(EntityAI arrow)
17  {
18  m_Arrows.RemoveItem(arrow);
19  }
20 
21  void ClearArrows()
22  {
23  foreach (EntityAI arrow : m_Arrows)
24  arrow.DeleteSafe();
25 
26  m_Arrows.Clear();
27  }
28 
29  EntityAI GetArrow(int index)
30  {
31  if (m_Arrows.Count() > index)
32  {
33  return m_Arrows.Get(index);
34  }
35 
36  return null;
37  }
38 
39 }
array< EntityAI >
ArrowManagerBase
Definition: arrowmanagerbase.c:1
EntityAI
Definition: building.c:5