Skip to content

Profectus / game/layers / layers

Variable: layers ​

const layers: Record<string, Readonly<Layer>>

A reference to all the current layers. It is shallow reactive so it will update when layers are added or removed, but not interfere with the existing refs within each layer.

Defined in ​

profectus/src/game/layers.tsx:74