Skip to content

UnitSeen beta ​

Interface of @v12-engine/engine/ai

ts
export interface UnitSeen

An enemy unit as last seen (enemy.workersSeen, enemy.heroesSeen): level for a hero, died the tick it was seen to die (a hero may come back)

Members ​

at ​

ts
at: Vec2;

Where it was last seen, in cells

died ​

ts
died?: number;

The tick it was seen to die; nothing while it is not known dead

id ​

ts
id: number;

The entity id of the unit

level ​

ts
level?: number;

The hero's level as last seen; none for a unit that is not a hero

owner ​

ts
owner: PlayerId;

The player the unit belongs to

tick ​

ts
tick: number;

The tick it was last seen at

type ​

ts
type: string;

The unit type id of the unit