Update README.md to version 0.2.0: add API entries for the 16 new public functions (encode_gid, decode_gid, upgrade_v1_to_v2, validate_map_table_v2, atlas_count, atlas_id_at, has_layer, is_indoor, cell_gid, tile_at_layer, blocks_walk, blocks_sight, iterate_layers_pre_entities, iterate_layers_post_entities, draw_map_pre_entities, draw_map_post_entities), add the schema-v2 reference section documenting layer-stack, packed-u32 GID bit layout, auto-migration, and a v0.2.0 changelog entry. Fix tile-id OOB validation regression in build_map_v2: after v1->v2 upgrade, packed GIDs were not checked against atlas palette sizes. Restore the check in build_map_v2 so loading a map with an out-of-range tile_id still produces a fatal error with the same message pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 KiB
27 KiB