mwg API
    Preparing search index...

    Interface MwlMapFile

    A loaded .map: the header keys the file declared, the grid parseTerrain already produces, and the same start markers an inline [map] terrain= string carries.

    interface MwlMapFile {
        codes: string[];
        header: Readonly<Record<string, string>>;
        height: number;
        starts: Record<number, { x: number; y: number }[]>;
        width: number;
    }
    Index
    codes: string[]

    row-major terrain codes, width * height of them

    header: Readonly<Record<string, string>>

    the key=value lines before the grid, in the order written (border_size, usage, ...)

    height: number
    starts: Record<number, { x: number; y: number }[]>

    side number -> the hexes its [side] start came from, when the grid marks them

    width: number