Class SpawnEnemyEntry
- Namespace
- SurvivorsMaker.Data
- Assembly
- SurvivorsMaker.Data.dll
Enemy-asset reference and independent count, probability and elite-roll authoring data.
public sealed class SpawnEnemyEntry
- Inheritance
-
SpawnEnemyEntry
- Inherited Members
Constructors
SpawnEnemyEntry()
public SpawnEnemyEntry()
Fields
Chance
Activation probability from 0 to 1; 0 = never, 1 = always.
[Tooltip("Activation probability from 0 to 1; 0 = never, 1 = always.")]
public float Chance
Field Value
Elite
Elite definition used when the elite roll succeeds; optional when chance is 0.
[Tooltip("Elite definition used when the elite roll succeeds; optional when chance is 0.")]
public EliteAsset Elite
Field Value
EliteChance
Elite roll probability per enemy, from 0 to 1; 0 = ordinary enemies.
[Tooltip("Elite roll probability per enemy, from 0 to 1; 0 = ordinary enemies.")]
public float EliteChance
Field Value
Enemy
Enemy asset to spawn; required for an enabled spawn request.
[Tooltip("Enemy asset to spawn; required for an enabled spawn request.")]
public EnemyAsset Enemy
Field Value
MaxCount
Inclusive maximum enemy count; must be at least Min Count.
[Tooltip("Inclusive maximum enemy count; must be at least Min Count.")]
public int MaxCount
Field Value
MinCount
Inclusive minimum enemy count; must be nonnegative.
[Tooltip("Inclusive minimum enemy count; must be nonnegative.")]
public int MinCount
Field Value
Methods
ToDef()
Converts this authoring entry to a runtime definition, resolving asset references through their caches.
public SpawnEntryDef ToDef()