3 protected ResourceName m_sPrefabResource;
4 protected ref set<int> m_aExtendedPrefabIDs =
new set<int>();
6 ResourceName GetPrefab()
8 return m_sPrefabResource;
11 void SetPrefab(ResourceName prefabResource)
13 m_sPrefabResource = prefabResource;
16 int GetExtendedEntities(notnull out set<int> prefabIDs)
20 foreach (
int prefabID : m_aExtendedPrefabIDs)
22 prefabIDs.Insert(prefabID);
26 return prefabIDs.Count();
29 void SetExtendedEntities(notnull set<int> prefabIDs)
31 m_aExtendedPrefabIDs.Clear();
33 foreach (
int prefabID : prefabIDs)
35 m_aExtendedPrefabIDs.Insert(prefabID);
38 m_aExtendedPrefabIDs.Compact();