screeps-api
    Preparing search index...

    Interface GameMapStatsResponse<S>

    POST /api/game/map-stats response

    interface GameMapStatsResponse<S extends MapStat = "owner0"> {
        gameTime: number;
        ok: 1;
        stats: {
            [roomName: string]: GameMapStatsRoom & {
                [P in MapStat]: { user: string; value: number }
            };
        };
        users: Users;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    gameTime: number
    ok: 1

    An API success response always contains { ok: 1 }

    stats: {
        [roomName: string]: GameMapStatsRoom & {
            [P in MapStat]: { user: string; value: number }
        };
    }
    users: Users