warframe-worldstate-parser
Version:
An Open parser for Warframe's Worldstate in Javascript
59 lines (58 loc) • 1.47 kB
text/typescript
import { r as WorldStateObject, t as BaseContentObject } from "./WorldStateObject-CIJgXUCx.mjs";
import { n as RawNightwaveChallenge, t as NightwaveChallenge } from "./NightwaveChallenge-Cm_BhnRu.mjs";
import { Locale } from "warframe-worldstate-data";
//#region lib/models/Nightwave.d.ts
interface RawNightwave extends BaseContentObject {
Season: number;
AffiliationTag: string;
Phase: number;
Params: string;
Challenges?: RawNightwaveChallenge[];
ActiveChallenges: RawNightwaveChallenge[];
}
/**
* Represents a nightwave state
* @augments {WorldStateObject}
*/
declare class Nightwave extends WorldStateObject {
/**
* The current season. 0-indexed.
*/
season: number;
/**
* Descriptor for affiliation
*/
tag: string;
/**
* The current season's current phase. 0-indexed.
*/
phase: number;
/**
* Misc params provided.
*/
params: Record<string, unknown>;
/**
* Array of possible challenges
*/
possibleChallenges: NightwaveChallenge[];
/**
* Array of active challenges
*/
activeChallenges: NightwaveChallenge[];
/**
* @param data The alert data
* @param deps The dependencies object
* @param deps.locale Locale to use for translations
*/
constructor(data: RawNightwave, {
locale
}?: {
locale: Locale;
});
/**
* How much time is left before the nightwave expires
*/
get eta(): string;
}
//#endregion
export { RawNightwave as n, Nightwave as t };