api.module
README.md
battleMapsKit.api
The public API of the battleMapsKit package: require("battleMapsKit.api") returns BM. Tactics games call it to get a battle map (BM.get(layout, setting)) or generate one from a seed (BM.generate({ seed, setting, cols, rows, levels, chokepoint })), validate one (BM.check, BM.isMirrored), query terrain and the movement rule (heightAt, isRamp, isFord, moveCost, canStep, reach, path with optional weighted costs, rampDir), add their own layouts and settings (defineLayout, defineSetting, expand), get a lighting suggestion (lightingFor, applyLighting) and draw a board at runtime (BM.build). The package README lists every call and the map data format.