Emergency 20 Dokumentation  4.2.0
em5::SpawnPoolManager Class Reference

#include <SpawnPoolManager.h>

Inheritance diagram for em5::SpawnPoolManager:
qsf::Manager

Classes

struct  SpawnInstanceData
 

Public Types

typedef const SpawnInstanceDataSpawnInstanceDataPointer
 

Public Member Functions

 SpawnPoolManager ()
 Default constructor. More...
 
virtual ~SpawnPoolManager ()
 Destructor. More...
 
void loadAssets ()
 Load the assets. More...
 
bool loadByFilename (const std::string &filename)
 Load order information JSON file. More...
 
const std::string & getRandomNameFromSpawnPool (const std::string &spawnPoolName, SpawnInstanceDataPointer *instanceData=nullptr) const
 Get a random prefab local asset name from the given spawn pool. More...
 
const std::string & getRandomEquipmentName (const SpawnInstanceData &instanceData) const
 
bool getSpawnpoolInstance (const std::string &spawnPoolName, const std::string &instanceName, SpawnInstanceDataPointer *instanceData=nullptr) const
 

Additional Inherited Members

- Protected Member Functions inherited from qsf::Manager
 Manager ()
 Default constructor. More...
 
virtual ~Manager ()
 Destructor. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

em5::SpawnPoolManager::SpawnPoolManager ( )

Default constructor.

virtual em5::SpawnPoolManager::~SpawnPoolManager ( )
virtual

Destructor.

Member Function Documentation

const std::string& em5::SpawnPoolManager::getRandomEquipmentName ( const SpawnInstanceData instanceData) const
const std::string& em5::SpawnPoolManager::getRandomNameFromSpawnPool ( const std::string &  spawnPoolName,
SpawnInstanceDataPointer instanceData = nullptr 
) const

Get a random prefab local asset name from the given spawn pool.

Parameters
[in]spawnPoolNameName of the spawn pool to choose a random prefab from
Returns
Randomly chosen prefab local asset name
bool em5::SpawnPoolManager::getSpawnpoolInstance ( const std::string &  spawnPoolName,
const std::string &  instanceName,
SpawnInstanceDataPointer instanceData = nullptr 
) const
void em5::SpawnPoolManager::loadAssets ( )

Load the assets.

bool em5::SpawnPoolManager::loadByFilename ( const std::string &  filename)

Load order information JSON file.

Parameters
[in]filenamePath of the file to load
Returns
"true" if all went fine, "false" on error

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