Class EnemyDeathSpawnEntry

Namespace
SurvivorsMaker.Data
Assembly
SurvivorsMaker.Data.dll

Enemy-asset reference, count and placement radius used for death spawning.

public sealed class EnemyDeathSpawnEntry
Inheritance
EnemyDeathSpawnEntry
Inherited Members

Constructors

EnemyDeathSpawnEntry()

public EnemyDeathSpawnEntry()

Fields

Count

Nonnegative number of enemies to create; 0 creates none.

[Tooltip("Nonnegative number of enemies to create; 0 creates none.")]
public int Count

Field Value

int

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

EnemyAsset

Radius

Placement radius in world units; nonnegative, 0 uses the centre.

[Tooltip("Placement radius in world units; nonnegative, 0 uses the centre.")]
public float Radius

Field Value

float

Methods

ToDef()

Converts this authoring entry to a runtime definition, resolving asset references through their caches.

public DeathSpawnDef ToDef()

Returns

DeathSpawnDef