Check tile layer connectivity
tiled_check_connectivityAnalyze four-way connectivity on a tile layer: returns component sizes, representative cells, and checks if two positions are connected. Define passability via empty cells or listed tiles.
Instructions
Bounded four-way connectivity analysis over one finite tile layer with explicit passability: either empty cells walk (mode empty-cells) or a listed tile set walks (mode listed-tiles, with includeEmpty opting empty cells in); flip bits never affect matching. Returns passable/blocked counts, connected components ranked by size with one representative cell each, and — when from/to are both given — whether they share a component. Read-only; endpoints on blocked cells fail closed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| layerId | Yes | ||
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| passable | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |