Skip to content

FogMessage beta ​

Interface of @v12-engine/engine

ts
export interface FogMessage

The fog of a team, as runs of the same value: 0s first, then 1s, then 0s... Few runs for a map of open fields

Members ​

explored ​

ts
explored: number[];

Run lengths of the cells the team has explored: 0s first, then 1s, then 0s..

revealed ​

ts
revealed: boolean;

Whether the whole map is revealed to the team, so the runs are not needed

visible ​

ts
visible: number[];

Run lengths of the cells the team sees now: 0s first, then 1s, then 0s..