screeps-api
    Preparing search index...

    Interface MapVisualEvent

    WebSocket event for map visuals on the alpha version of the world map.

    When subscribed, the server will send one event per tick with the map visuals generated on the previous tick.

    Raw sample events:
    ["mapVisual:670e0c607317e200125d3aa2/shardSeason",null]
    interface MapVisualEvent {
        data: string | null;
        id: string;
        path: string;
        type: "mapVisual";
    }
    Index

    Properties

    Properties

    data: string | null

    The output from Game.map.visual.export()

    id: string

    The authenticated user's ID

    path: string

    The shard name (or empty if running on an unofficial server)

    type: "mapVisual"