Class ModCombinationAbstract

A mod combination.

Constructors

Accessors

Methods

  • Parameters

    • input: string | number

      The bitwise value or acronyms.

    Returns boolean

    If the mod combination contain all of the mods from this bitwise or acronyms.

  • Finds a mod by bitwise value or acronyms.

    Parameters

    • input: string | number

      The bitwise value or acronyms.

    Returns IMod

    First found mod. Otherwise returns null.

  • Finds mods by bitwise value or acronyms.

    Parameters

    • input: string | number

      The bitwise value or acronyms.

    Returns IMod[]

    The list of all found mods.

  • Converts mod acronyms to a bitwise value.

    Parameters

    • input: unknown

      The mod acronyms.

    Returns number

    The bitwise value.

  • Converts this mod combination to a string.

    Returns string

    Formatted mod combination that can be converted to JSON.