Skip to content

Zone beta ​

Interface of @v12-engine/engine

ts
export interface Zone

Ground an ability goes on working on for a while

Members ​

ability ​

ts
ability: AbilityDef;

The ability that made the zone

caster ​

ts
caster: Entity;

The unit that cast the ability

effect ​

ts
effect: EffectOf<'zone'>;

The zone effect that says what it does to what is inside

follows ​

ts
follows?: EntityId;

The unit it goes with (follow)

from ​

ts
from?: Vec2;

Where the effects went off from and the way they faced as it was cast, kept for what it holds with a shape (EffectCommon.shape): a cone of it goes off from there, the way it faced. Left out for one with no shape

heading ​

ts
heading?: number;

The way it faced as it was cast, in radians as a unit's facing (0 along +z); left out for one with no shape

id ​

ts
id: number;

The zone's id, from world.newId

inside ​

ts
inside?: EntityId[];

Who is in it now, by id from the lowest, for one that sees to who comes and goes (onEnter, onLeave, edge)

left ​

ts
left: number;

Seconds the zone goes on

level ​

ts
level: number;

The ability's level when it was cast

next ​

ts
next: number;

Seconds until what is inside is next seen to

x ​

ts
x: number;

Centre of the zone, east-west

z ​

ts
z: number;

Centre of the zone, north-south