Zone beta
Interface of @v12-engine/engine
export interface ZoneGround an ability goes on working on for a while
Members
ability
ability: AbilityDef;The ability that made the zone
caster
caster: Entity;The unit that cast the ability
effect
effect: EffectOf<'zone'>;The zone effect that says what it does to what is inside
follows
follows?: EntityId;The unit it goes with (follow)
from
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
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
id: number;The zone's id, from world.newId
inside
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
left: number;Seconds the zone goes on
level
level: number;The ability's level when it was cast
next
next: number;Seconds until what is inside is next seen to
x
x: number;Centre of the zone, east-west
z
z: number;Centre of the zone, north-south