warframe-worldstate-parser
    Preparing search index...

    Represents an invasion

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • data: RawInvasion

        The invasion data

      • deps: default = ...

        The dependencies object

        Dependency Object

        • Optionalcharacter?: string

          Character name for traders

        • OptionalkuvaData?: KuvaLogEntry[]

          Kuva data for parsing

        • locale: Locale

          Locale to use for translations

        • Optionallogger?: { debug: (message: string) => void }

          Generic logger to use if needed

        • OptionalsentientData?: { end: number; start: number }

          Sentint Data for parsing

        • OptionalsortieData?: SortieData

          Sortie data for parsing

      Returns default

    Properties

    activation?: Date

    The date and time at which the WorldstateObject started

    Invasion attacker

    completed: boolean

    Whether the invasion has finished

    completion: number

    The invasion's completion percentage. Defenders win if it gets to 0 Grineer vs. Corpus invasions start at 50, Infested invasions start at 100

    count: number

    The signed count of completed runs. Supporting the attackers makes the count go up, supporting the defenders makes it go down

    Invasion defender

    desc: string

    The invasion's description

    expiry?: Date

    The date and time at which the WorldstateObject ends

    id?: string

    The object's id field

    node: string

    The node where the invasion is taking place

    nodeKey: string

    The node key where the invasion is taking place

    requiredRuns: number

    The number of runs that one side needs to win

    rewardTypes: string[]

    An array containing the types of all of the invasions's rewards

    vsInfestation: boolean

    Whether this invasion is against the infestation

    Accessors

    • get active(): boolean

      Whether the void trader is active (at time of object creation)

      Returns boolean

    • get endString(): undefined | string

      Time delta string from now to the end

      Returns undefined | string

    • get isAttackerWinning(): boolean

      Whether or not the attackers are winning. This is always false when the infestation is attacking

      Returns boolean

    • get startString(): undefined | string

      A string indicating how long it will take for the trader to arrive (at time of object creation)

      Returns undefined | string