Info for Entity Spawner.
More...
◆ CanSpawnInSlot()
bool SCR_EntityCatalogSpawnerData.CanSpawnInSlot |
( |
SCR_EEntitySpawnerSlotType |
slotSize | ) |
|
Check if entity can be spawned in slot of given size.
- Parameters
-
slotSize | Slot size to check |
- Returns
- Returns true if entity can spawn in given slot size
◆ GetEntityCount()
int SCR_EntityCatalogSpawnerData.GetEntityCount |
( |
| ) |
|
◆ GetMinimumRequiredRank()
SCR_ECharacterRank SCR_EntityCatalogSpawnerData.GetMinimumRequiredRank |
( |
| ) |
|
Get the minimum required rank.
- Returns
- Returns the minimum required rank
◆ GetOverwriteName()
Get Localized overwrite name Empty if no name is overwritten.
- Returns
- Localized overwrite name
◆ GetRandomDefaultOrVariantPrefab()
ResourceName SCR_EntityCatalogSpawnerData.GetRandomDefaultOrVariantPrefab |
( |
| ) |
|
Get random variant or default prefab.
- Returns
- Random variant or default prefab
◆ GetSupplyCost()
int SCR_EntityCatalogSpawnerData.GetSupplyCost |
( |
| ) |
|
Get supply cost of spawning Entity.
- Returns
- Supply cost
◆ GetValidSlotSizes()
SCR_EEntitySpawnerSlotType SCR_EntityCatalogSpawnerData.GetValidSlotSizes |
( |
| ) |
|
Get flags of valid slot sizes.
- Returns
- Valid slot sizes flags
◆ GetVariantDataList()
int SCR_EntityCatalogSpawnerData.GetVariantDataList |
( |
notnull out array< SCR_SpawnerVariantData > |
variantData | ) |
|
Get list of all variant data.
- Parameters
-
[out] | variantData | List of variant data |
- Returns
- length of variant data array
◆ GetVariantDataOfType()
Get specific variant data of type if it exists.
- Parameters
-
- Returns
- Variant data (or null if not found)
◆ GetVariantPrefabList()
int SCR_EntityCatalogSpawnerData.GetVariantPrefabList |
( |
notnull out array< ResourceName > |
variantPrefabs | ) |
|
Get list of all variant prefabs.
- Parameters
-
[out] | variantData | List of variant prefabs |
- Returns
- length of variant prefab array
◆ GetVariantPrefabOfType()
ResourceName SCR_EntityCatalogSpawnerData.GetVariantPrefabOfType |
( |
ESpawnerVariantType |
variantType | ) |
|
Get specific variant Prefab of type if it exists.
- Parameters
-
- Returns
- Variant prefab (or empty if not found)
◆ HasRequiredRank()
bool SCR_EntityCatalogSpawnerData.HasRequiredRank |
( |
SCR_ECharacterRank |
rank | ) |
|
Check if entity can be spawned by player with specific rank Will check if given rank is equal or greater then minimum required rank.
- Parameters
-
rank | Rank of player that request the spawn |
- Returns
- Returns true if player has the required rank
◆ InitData()
◆ SetEnabled()
void SCR_EntityCatalogSpawnerData.SetEnabled |
( |
bool |
enable | ) |
|
Set the enabled state of the entity in the spawner Changing this in runtime will allow/disallow certain entities to spawn for factions.
- Parameters
-
◆ m_aVariantData
◆ m_eMinimumRequiredRank
SCR_ECharacterRank SCR_EntityCatalogSpawnerData.m_eMinimumRequiredRank |
|
protected |
◆ m_eSlotTypes
SCR_EEntitySpawnerSlotType SCR_EntityCatalogSpawnerData.m_eSlotTypes |
|
protected |
◆ m_iEntityCount
int SCR_EntityCatalogSpawnerData.m_iEntityCount |
|
protected |
◆ m_iSupplyCost
int SCR_EntityCatalogSpawnerData.m_iSupplyCost |
|
protected |
◆ m_sDefaultPrefab
ResourceName SCR_EntityCatalogSpawnerData.m_sDefaultPrefab |
|
protected |
◆ m_UiInfo
ref SCR_UIInfo SCR_EntityCatalogSpawnerData.m_UiInfo |
|
protected |
The documentation for this interface was generated from the following file:
- Game/EntityCatalog/EntityCatalogEntryData/SCR_EntityCatalogSpawnerData.c