Adds the optional layer.cells_material array to the v3 schema validator, the per-cell read helper cells_material_at, the lazy-allocator ensure_cells_material, and extends cell_has_material plus compute_cell_bitmask_v3 to consult it. No public-API change yet; cell_has_material's signature gains a cells_material parameter that all internal callers thread through. A layer with no cells_material entry remains behaviourally identical to v0.5.6. Public APIs and the bitmask branch land in later commits. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
79 KiB
79 KiB