Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditableEntityCache.c
Go to the documentation of this file.
2 {
3  protected ResourceName m_sPrefabResource;
4  protected ref set<int> m_aExtendedPrefabIDs = new set<int>();
5 
6  ResourceName GetPrefab()
7  {
8  return m_sPrefabResource;
9  }
10 
11  void SetPrefab(ResourceName prefabResource)
12  {
13  m_sPrefabResource = prefabResource;
14  }
15 
16  int GetExtendedEntities(notnull out set<int> prefabIDs)
17  {
18  prefabIDs.Clear();
19 
20  foreach (int prefabID : m_aExtendedPrefabIDs)
21  {
22  prefabIDs.Insert(prefabID);
23  }
24 
25  prefabIDs.Compact();
26  return prefabIDs.Count();
27  }
28 
29  void SetExtendedEntities(notnull set<int> prefabIDs)
30  {
31  m_aExtendedPrefabIDs.Clear();
32 
33  foreach (int prefabID : prefabIDs)
34  {
35  m_aExtendedPrefabIDs.Insert(prefabID);
36  }
37 
38  m_aExtendedPrefabIDs.Compact();
39  }
40 }
SCR_EditableEntityCache
Definition: SCR_EditableEntityCache.c:1