Skip to content

Dash beta ​

Interface of @v12-engine/engine

ts
export interface Dash

A rush to a spot: nothing stops it, and what it does happens where it ends

Members ​

ability ​

ts
ability: string;

The id of the ability that sent it

buff ​

ts
buff?: string;

A buff it carries for as long as the rush lasts

effect ​

ts
effect?: number;

Which effect of the ability sent it, by its place there (effectIndex): what the screen draws it with (AbilityLook.effects). Nothing to the rules

effects ​

ts
effects: EffectDef[];

The effects that happen where it ends

from ​

ts
from: Vec2;

Where it started

height ​

ts
height?: number;

How high it rises on the way: a leap, over whatever is in between

level ​

ts
level: number;

The level of the ability it was cast at

pulled ​

ts
pulled?: {
        by: EntityId;
        follows: boolean;
    };

Dragged by someone (the effect pull): by whom, in whose name effects happen to it as it arrives, and whether it is dragged after them as they move (follows) or to the spot (x, z). It does nothing of its own meanwhile, and nothing else moves it

speed ​

ts
speed: number;

Units per second

target ​

ts
target?: EntityId;

The unit it rushes to (a dash to a unit, in a game with the moves pack): its landing effects happen to it, where it still is in the world

x ​

ts
x: number;

Where it ends, east-west in cells

z ​

ts
z: number;

Where it ends, north-south in cells