Skip to content

five-on-it / apps/client/src/renderer/zones-view / ZonesView

Interface: ZonesView ​

Defined in: apps/client/src/renderer/zones-view.ts:102

The zones' view.

Properties ​

counts ​

readonly counts: object

Defined in: apps/client/src/renderer/zones-view.ts:114

What is drawn now: the puffs of each kind, the flames, and the rings and bursts drawn so far.

bursts ​

bursts: number

fire ​

fire: number

foam ​

foam: number

gas ​

gas: number

rings ​

rings: number

smoke ​

smoke: number


zones ​

readonly zones: readonly ZoneSeen[]

Defined in: apps/client/src/renderer/zones-view.ts:112

The zones listed now.

Methods ​

burst() ​

burst(x, y, z): void

Defined in: apps/client/src/renderer/zones-view.ts:108

A flashbang's burst at a point.

Parameters ​

x ​

number

y ​

number

z ​

number

Returns ​

void


render() ​

render(dt): void

Defined in: apps/client/src/renderer/zones-view.ts:110

Feeds every zone's particles over dt seconds and draws them; once a frame.

Parameters ​

dt ​

number

Returns ​

void


ring() ​

ring(x, y, z, radius): void

Defined in: apps/client/src/renderer/zones-view.ts:106

An EMP's ring of radius m at a point.

Parameters ​

x ​

number

y ​

number

z ​

number

radius ​

number

Returns ​

void


update() ​

update(entities, fresh?): void

Defined in: apps/client/src/renderer/zones-view.ts:104

The zones a snapshot lists (zone entities); fresh hears of each one new to it.

Parameters ​

entities ​

readonly EntitySnapshot[]

fresh? ​

(zone) => void

Returns ​

void