screeps-api
    Preparing search index...

    Interface Flag

    Represents a flag owned by the authenticated user.

    While this interface seems to conform to RoomObject, it is not included in results from ScreepsHttpClient.gameRoomObjects.

    interface Flag {
        _id: string;
        color: FlagColor;
        secondaryColor: FlagColor;
        type: "flag";
        x: number;
        y: number;
    }
    Index

    Properties

    _id: string

    Unlike other _id fields, values are formatted as flag_${name}

    color: FlagColor
    secondaryColor: FlagColor
    type: "flag"
    x: number
    y: number