screeps-api
    Preparing search index...

    Interface UserMemoryEvent

    WebSocket event for updates to Memory

    // Parsed JSON:
    [
    "user:670e0c607317e200125d3aa2/memory/shardSeason/creeps.Scout-80965",
    "undefined"
    ]
    interface UserMemoryEvent {
        data: string;
        id?: string;
        path: string;
        type: "user";
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    data: string

    The contents of the Memory path as a JSON string.

    If path is undefined, this will be set to "undefined"

    id?: string

    ID of the entity the event is reporting on. Undefined when type is server.

    Examples:

    • User ID for user events
    • Room name (shard0/W0N0, W0N0, etc) for room events
    path: string

    memory/${shardName}/${memoryPath}

    type: "user"