Class SummonEnemyAttack

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

Built-in special attack that queues child enemies through the spawn system.

public sealed class SummonEnemyAttack : TimedEnemyAttack, IEnemyAttack
Inheritance
SummonEnemyAttack
Implements
Inherited Members

Constructors

SummonEnemyAttack()

public SummonEnemyAttack()

Methods

CanStart(SimWorld, Enemy, SpecialAttackDef)

Additional eligibility hook; false prevents this attack from firing.

protected override bool CanStart(SimWorld world, Enemy enemy, SpecialAttackDef attack)

Parameters

world SimWorld
enemy Enemy
attack SpecialAttackDef

Returns

bool

Fire(SimWorld, Enemy, SpecialAttackDef)

Performs one eligible special attack; use world.Random and queue spawned entities through world-owned systems.

protected override void Fire(SimWorld world, Enemy enemy, SpecialAttackDef attack)

Parameters

world SimWorld
enemy Enemy
attack SpecialAttackDef