screeps-cartographer
    Preparing search index...

    Variable normalizeTargetsConst

    normalizeTargets: (
        ...args: [
            targets: | RoomPosition
            | RoomPosition[]
            | _HasRoomPosition
            | MoveTarget
            | MoveTarget[],
            keepTargetInRoom: any,
            flee: any,
        ],
    ) => MoveTarget[] = ...

    Takes a target or list of targets in a few different possible formats and normalizes to a list of MoveTarget[]

    Type Declaration

      • (
            ...args: [
                targets: | RoomPosition
                | RoomPosition[]
                | _HasRoomPosition
                | MoveTarget
                | MoveTarget[],
                keepTargetInRoom: any,
                flee: any,
            ],
        ): MoveTarget[]
      • Parameters

        • ...args: [
              targets: | RoomPosition
              | RoomPosition[]
              | _HasRoomPosition
              | MoveTarget
              | MoveTarget[],
              keepTargetInRoom: any,
              flee: any,
          ]

        Returns MoveTarget[]