screeps-api
    Preparing search index...

    Interface GameCreateConstructionResponse

    POST /api/game/create-construction response

    interface GameCreateConstructionResponse {
        insertedCount: number;
        insertedIds: string[];
        ok: 1;
        ops: {
            _id: string;
            progress: number;
            progressTotal: number;
            room: string;
            structureType: BuildableStructureType;
            type: RoomObjectType;
            user: string;
            x: number;
            y: number;
        }[];
        result: { n: 1; ok: 1 };
    }

    Hierarchy (View Summary)

    Index

    Properties

    insertedCount: number
    insertedIds: string[]
    ok: 1

    An API success response always contains { ok: 1 }

    ops: {
        _id: string;
        progress: number;
        progressTotal: number;
        room: string;
        structureType: BuildableStructureType;
        type: RoomObjectType;
        user: string;
        x: number;
        y: number;
    }[]
    result: { n: 1; ok: 1 }