mwg API
    Preparing search index...

    Interface TiledMapData

    The subset of Tiled's JSON export this loader reads: embedded or external tilesets, and uncompressed tile-layer data, in any of orthogonal, isometric or staggered orientation - TileMap's own shape option is what actually draws the difference, this only has to pick the right one. Base64/compressed layer data and Tiled's hexagonal orientation (a different offset/axial convention than mwg's own flat-top scheme - see mwg/core's Hex.ts) are still on the roadmap rather than read here yet - each throws a clear error naming what was found, rather than silently loading something wrong.

    Load the JSON itself with mwg/assets's Resources.get, same as any other JSON asset; this function only does the parsing.

    interface TiledMapData {
        height: number;
        layers: TiledLayer[];
        orientation?: string;
        staggeraxis?: string;
        staggerindex?: string;
        tileheight: number;
        tilesets: { firstgid: number; source?: string }[];
        tilewidth: number;
        width: number;
    }
    Index
    height: number
    layers: TiledLayer[]
    orientation?: string
    staggeraxis?: string

    staggered maps only - which axis alternates, and whether the odd or even one shifts

    staggerindex?: string
    tileheight: number
    tilesets: { firstgid: number; source?: string }[]
    tilewidth: number
    width: number