Field Command: RTS Selection, Formations, Fog of War and AI Opponents Kit
README.md
fogOfWarKit test suite
Checks fogOfWarKit's CPU side and its public API: grid math and bounds, batched sources (Fog.setSources), keyed sources (addSource / moveSource / removeSource), entity-following sources, explored memory that stays after sight moves on, the 0/1/2 Fog.state answers, reveal and reset, teams kept apart, line of sight through setBlocker walls, the four looks and setLook refusing unknown ids, setup reshaping the grid (and in-place keys keeping memory), Fog.track hiding enemies the viewer cannot see, the updated event and stats.
It does not judge how the fog LOOKS (that is checked with captures) or measure GPU cost. It runs in edit mode, uses a test area far from the origin (x, z around 5000), and leaves the fog cleared and disabled when it is done, so re-run your own Fog.setup afterwards if a scene was using it.
Run it: tools.use("tests", "run", { suite = "fogOfWarKit" }).