Interface IAbilityAction

Namespace
TDMaker.Core
Assembly
TDMaker.Core.dll

A custom ability payload; keep its immutable configuration here and per-entity state in custom components.

public interface IAbilityAction

Examples

var action = new AbilityActionDef(new ShieldPulse(), cooldown: 2);

Methods

TryExecute(Simulation, Entity, int, int)

Returns true on successful activation, consuming the channel cooldown.

bool TryExecute(Simulation simulation, Entity actor, int slotIndex, int actionIndex)

Parameters

simulation Simulation
actor Entity
slotIndex int
actionIndex int

Returns

bool