Special barrage class for extended functionality

Hierarchy

Constructors

Properties

client: AzurAPI
fuse?: Fuse<Barrage>
raw: Barrage[]

Methods

  • Determines whether all the members of an array satisfy the specified test

    Parameters

    • predicate: ((value: Barrage, index: number, array: Barrage[]) => unknown)

      A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

    Returns boolean

  • Returns the elements of an array that meet the condition specified in a callback function.

    Parameters

    • predicate: ((value: Barrage, index: number, array: Barrage[]) => unknown)

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

    Returns Barrage[]

  • Performs the specified action for each element in an array.

    Parameters

    • callbackfn: ((value: Barrage, index: number, array: Barrage[]) => void)

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

    Returns void

  • Search fuse cache

    Parameters

    • name: string

      Any

    Returns FuseResult<Barrage>[]

  • Get by any

    Returns

    Array

    Parameters

    • query: string

      Any

    Returns Barrage[]

  • Get barrage by hull type

    Parameters

    • hull: Hull

      Hull type

    Returns [] | Barrage[]

  • Get by id

    Parameters

    • id: string

      String of number

    Returns undefined | Barrage

  • Calls a defined callback function on each element of an array, and returns an array that contains the results.

    Type Parameters

    • U

    Parameters

    • callbackfn: ((value: Barrage, index: number, array: Barrage[]) => U)

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

    Returns U[]

  • Get barrage by name

    Parameters

    • name: string

      Barrage name

    Returns [] | Barrage[]

  • Set the cache

    Parameters

    Returns void

  • Sort barrages by compatable ship

    Parameters

    • ship: Ships

      A ship name

    Returns [] | Barrage[]

  • Determines whether the specified callback function returns true for any element of an array.

    Parameters

    • predicate: ((value: Barrage, index: number, array: Barrage[]) => unknown)

      A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

    Returns boolean

  • Get barrage by type

    Parameters

    • type: "ship" | "class" | "skill"

      Barrage type

    Returns [] | Barrage[]

Generated using TypeDoc