Skip to content

Delayed beta ​

Interface of @v12-engine/engine

ts
export interface Delayed

Something an ability does a while after it was cast

Members ​

ability ​

ts
ability: AbilityDef;

The ability whose effects are waiting

caster ​

ts
caster: Entity;

The unit that cast the ability

effects ​

ts
effects: EffectDef[];

The effects to run when the time is up

from ​

ts
from?: Vec2;

Where the effects went off from and the way they faced as it was cast, for those with a shape (EffectCommon.shape)

heading ​

ts
heading?: number;

The way the effects faced as it was cast, in radians as a unit's facing (0 along +z), for those with a shape

impact ​

ts
impact?: string;

What its arrival goes by, when not the ability

left ​

ts
left: number;

Seconds until its effects happen

level ​

ts
level: number;

The ability's level when it was cast

point ​

ts
point: Vec2;

Where the effects happen