api.module
README.md
api
The public surface of fogOfWarKit: local Fog = require("fogOfWarKit.api"). Configure the grid (Fog.setup), pick a look (Fog.setLook), choose which team this screen draws (Fog.setViewer), feed sources (Fog.setSources batched, Fog.addSource/moveSource/removeSource keyed, or entity-following), ask Fog.isVisible / isExplored / state, reveal ground, hide enemies on this screen with Fog.track, add line-of-sight blockers, subscribe to Fog.on("updated"), read Fog.texture() for a minimap and Fog.stats() for costs. Games call it directly; the FogOfWar, FogSource, FogHideable and FogBlocker components are thin wrappers over it.