Skip to content

Riding beta ​

Interface of @v12-engine/engine

ts
export interface Riding

One unit riding another (attach): its host, who cast it (caster), the ability and level, the seconds left (until it is let go otherwise when left out), the cooldown put off until it is let go (held) and what happens then (onEnd)

Members ​

ability ​

ts
ability: string;

The ability it rides by

caster ​

ts
caster: EntityId;

Who cast it: whose casting the ability again lets it go

held ​

ts
held?: number;

The ability's cooldown, put off until it is let go

host ​

ts
host: EntityId;

Whom it rides

left ​

ts
left?: number;

Seconds until it is let go, when it has a duration

level ​

ts
level: number;

The level it was cast at

onEnd ​

ts
onEnd?: EffectDef[];

What happens as it is let go, in its name