Skip to content

FogState beta ​

Interface of @v12-engine/engine

ts
export interface FogState

What the player's team sees of the map. The arrays are per cell, row by row

Members ​

depth ​

ts
depth: number;

Cells across the map, north-south

explored ​

ts
explored: Uint8Array;

Per cell, row by row: non-zero where the team has seen the cell at some time

revealed ​

ts
revealed: boolean;

The whole map is lit, a debug switch

version ​

ts
version: number;

Changes whenever the arrays did

visible ​

ts
visible: Uint8Array;

Per cell, row by row: non-zero where the team sees the cell now

width ​

ts
width: number;

Cells across the map, east-west