Adds validate_map_table_v2 — enforces schema_version=2, required fields (id, size, atlases), non-empty atlases[], per-layer tile-count check against w*h, and a VALID_LAYER_NAMES whitelist that logs a warning for unknown layers instead of rejecting them. Moves require_field before the v2 validator so it is in scope at call time. engine.warn replaced with engine.print (no warn binding). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
16 KiB
16 KiB