Skip to content

UnitDoing beta ​

Interface of @v12-engine/client

ts
export interface UnitDoing

What a unit does: what an item of the lane and a step of a sequence have alike

Members ​

clip ​

ts
clip?: string;

A clip of the unit's model by its name, or a kind of animation (attack, cast, death...: what the model's animations maps it to)

facing ​

ts
facing?: number;

The way the unit is turned, in radians

fight ​

ts
fight?: UnitFight;

A fight with a fixed outcome: this unit attacks another (CN4, see UnitFight)

flash ​

ts
flash?: Rgb;

A colour the model flashes in

fx ​

ts
fx?: string;

The name of an effect played on the unit

hidden ​

ts
hidden?: boolean;

Whether the unit's model is hidden

ink ​

ts
ink?: InkLook | null;

An ink look (outline or flat colour) the model is drawn with, or null to take it off

invulnerable ​

ts
invulnerable?: boolean;

Whether the unit takes no damage while the cinematic lasts

kill ​

ts
kill?: boolean;

Whether the unit is killed, with its death played

loop ​

ts
loop?: boolean;

A clip played over and over until the item ends (for), or a cheer once

order ​

ts
order?: string;

The order the unit is given, such as move or attack, going to to or along path

owner ​

ts
owner?: number;

The player the spawned unit belongs to

path ​

ts
path?: string;

A path of the map by its name (MapPath): the order (a move where it names none) to each of its points in turn

place ​

ts
place?: Vec2;

Where it is put down, or put (teleport)

remove ​

ts
remove?: boolean;

Taken away, with no death

scale ​

ts
scale?: number;

How big the unit is drawn, times its model's size

spawn ​

ts
spawn?: string;

The director's (CI1): unit put down, a new one of this type, for owner at place

steps ​

ts
steps?: UnitStep[];

A sequence: what it does, a step after another, in the place of what the item itself does. See the top of this file

teleport ​

ts
teleport?: boolean;

Put at at at once

tint ​

ts
tint?: Rgb | null;

A colour the unit's model is tinted with, or null to take the tint off

to ​

ts
to?: Vec2 | string;

Where the order goes: a point, or a unit by name (its target)