Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PrefabsSpawner Class Reference

Base class for Prefabs Spawning. More...

Protected Member Functions

EPrefabSpawnType GetType ()
void Spawn (array< SCR_PrefabSpawnPoint > prefabSpawnPoints)
void SpawnPrefabsCategories (int numberOfPrefabsToSpawn, array< ref SCR_BasePrefabCategory > prefabsCategories)
void SpawnPrefabCategory (int totalprefabs, ResourceName prefab)
int GetTotalRatio (array< ref SCR_BasePrefabCategory > prefabsCategories)

Protected Attributes

EPrefabSpawnType m_eType
EGameFlags m_eRequiredGameFlags
int m_iTotalPrefabs
ref array< ref SCR_BasePrefabCategorym_aPrefabsCategories
ref array< SCR_PrefabSpawnPointm_aPrefabSpawnPoints
 List of all SCR_PrefabSpawnPoints for specific EPrefabSpawnType.

Detailed Description

Base class for Prefabs Spawning.

Definition at line 3 of file SCR_PrefabsSpawner.c.

Member Function Documentation

◆ GetTotalRatio()

int SCR_PrefabsSpawner::GetTotalRatio ( array< ref SCR_BasePrefabCategory > prefabsCategories)
inlineprotected

Total Ratio for prefab/s categories on same level of hierarchy.

Parameters
[in]prefabsCategories
Returns

Definition at line 102 of file SCR_PrefabsSpawner.c.

◆ GetType()

EPrefabSpawnType SCR_PrefabsSpawner::GetType ( )
inlineprotected
Returns

Definition at line 22 of file SCR_PrefabsSpawner.c.

◆ Spawn()

void SCR_PrefabsSpawner::Spawn ( array< SCR_PrefabSpawnPoint > prefabSpawnPoints)
inlineprotected

Call this to trigger spawn logic for this spawner

Parameters
[in]prefabSpawnPoints

Definition at line 30 of file SCR_PrefabsSpawner.c.

◆ SpawnPrefabCategory()

void SCR_PrefabsSpawner::SpawnPrefabCategory ( int totalprefabs,
ResourceName prefab )
inlineprotected

Spawn prefabs on random spawnpoints.

Parameters
[in]totalprefabs
[in]prefab

Definition at line 68 of file SCR_PrefabsSpawner.c.

◆ SpawnPrefabsCategories()

void SCR_PrefabsSpawner::SpawnPrefabsCategories ( int numberOfPrefabsToSpawn,
array< ref SCR_BasePrefabCategory > prefabsCategories )
inlineprotected

Triggers spawning for Categories of prefabs and/or nested categories of prefabs.

Parameters
[in]numberOfPrefabsToSpawn
[in]prefabsCategories

Definition at line 51 of file SCR_PrefabsSpawner.c.

Member Data Documentation

◆ m_aPrefabsCategories

ref array<ref SCR_BasePrefabCategory> SCR_PrefabsSpawner::m_aPrefabsCategories
protected

Definition at line 15 of file SCR_PrefabsSpawner.c.

◆ m_aPrefabSpawnPoints

ref array<SCR_PrefabSpawnPoint> SCR_PrefabsSpawner::m_aPrefabSpawnPoints
protected

List of all SCR_PrefabSpawnPoints for specific EPrefabSpawnType.

Definition at line 18 of file SCR_PrefabsSpawner.c.

◆ m_eRequiredGameFlags

EGameFlags SCR_PrefabsSpawner::m_eRequiredGameFlags
protected

Definition at line 9 of file SCR_PrefabsSpawner.c.

◆ m_eType

EPrefabSpawnType SCR_PrefabsSpawner::m_eType
protected

Definition at line 6 of file SCR_PrefabsSpawner.c.

◆ m_iTotalPrefabs

int SCR_PrefabsSpawner::m_iTotalPrefabs
protected

Definition at line 12 of file SCR_PrefabsSpawner.c.


The documentation for this class was generated from the following file: