One registered zone: a shape plus the handlers watching it.

Variables

read onlydata:Dynamic

The data passed in ZoneOptions, if any.

@:value(false)read onlyisInside:Bool = false

Whether the local player is currently inside.

Methods

remove():Void

Stops watching this zone.

If the player is inside when this is called, onExit runs first, so cleanup in the exit handler can't be skipped by removing a zone at the wrong moment.