Skip to content

Form beta ​

Interface of @v12-engine/engine

ts
export interface Form

A hero in one of its forms (form, takeForm): what it was, what turns it back, what it learns in the form and what of its own it put away meanwhile

Members ​

at ​

ts
at: number;

The game's time, in seconds, it took the form

back ​

ts
back: MorphBack[];

What turns it back

by ​

ts
by?: string;

The ability that made it, whose cast in the form turns it back (with ability in back)

cooldowns ​

ts
cooldowns?: FormCooldowns;

What becomes of the cooldowns of what is put away and what is brought (HeroForm.cooldowns): run down by the time away when left out

from ​

ts
from: string;

The unit type it was, and turns back into

kept ​

ts
kept: AbilityState[];

What it could cast as itself and cannot in the form, as it was: given back as it turns back, their cooldowns run down meanwhile

learns ​

ts
learns: string[];

What it learns in the form, in order: what the HUD's card and hero panel show, and what its points go into

linked ​

ts
linked?: Record<string, string>;

Of what it learns in the form, those whose level is that of one of its own (HeroForm.levels), by id: a point put into one in the form goes to its own too

own ​

ts
own: string[];

What it could cast as itself, by id, in its order

until ​

ts
until?: number;

The game's time it turns back at, for a form that lasts a while (back has time)