Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PossessSpawnData.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
4  protected RplId m_RplId;
5 
9  RplId GetRplId()
10  {
11  return m_RplId;
12  }
13 
17  static SCR_PossessSpawnData FromRplId(RplId id)
18  {
20  data.m_RplId = id;
21  return data;
22  }
23 
28  static SCR_PossessSpawnData FromEntity(notnull IEntity entity)
29  {
30  RplId id = RplId.Invalid();
31  RplComponent rplComponent = RplComponent.Cast(entity.FindComponent(RplComponent));
32  if (rplComponent)
33  id = rplComponent.Id();
34 
35  return FromRplId(id);
36  }
37 
38  protected void SCR_PossessSpawnData()
39  {
40  }
41 
45  override bool IsValid()
46  {
47  return m_RplId.IsValid();
48  }
49 };
SCR_SpawnData
Definition: SCR_SpawnData.c:9
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
SCR_PossessSpawnData
Definition: SCR_PossessSpawnData.c:2