mwg API
    Preparing search index...

    Interface Location

    A named point on a map that leads somewhere else - a town gate, a cave mouth, a dungeon entrance on the overworld. This is the shared floor mwg/rpg's tile events (item pages, triggers) will sit on top of later; on its own it is just the lookup, by position or by name, that turns "the player stepped here" into "which map, and which spawn, is next".

    interface Location {
        id: string;
        leadsTo: string;
        spawn?: string;
        x: number;
        y: number;
    }
    Index
    id: string
    leadsTo: string

    the map id this location leads to

    spawn?: string

    the spawn point to enter that map at, passed straight to World.enter

    x: number
    y: number