warframe-worldstate-parser
Version:
An Open parser for Warframe's Worldstate in Javascript
91 lines (90 loc) • 2.3 kB
TypeScript
/**
* Represents a Conclave challenge
* @augments {WorldstateObject}
*/
export default class ConclaveChallenge extends WorldstateObject {
/**
* @param {object} data The challenge data
* @param {object} deps The dependencies object
* @param {string} deps.locale Locale to use for translations
*/
constructor(data: object, { locale }?: {
locale: string;
});
/**
* The number of times that the challenge's objective needs to be completed
* @type {number}
*/
amount: number;
/**
* The PVP mode that the challenge must be completed in
* @type {string}
*/
mode: string;
/**
* The challenge's category (daily, weekly...)
* @type {string}
*/
category: string;
/**
* ETA string (at time of object creation)
* @type {string}
*/
eta: string;
/**
* Whether or not this is expired (at time of object creation)
* @type {boolean}
*/
expired: boolean;
/**
* Whether or not this is a daily conclave challenge.
* @type {boolean}
*/
daily: boolean;
/**
* Whether or not this is the root challenge
* @type {boolean}
*/
rootChallenge: boolean;
/**
* the end string
* @type {string}
*/
endString: string;
/**
* The challenge's description text
* @type {string}
*/
description: string;
/**
* Title of the challenge
* @type {string}
*/
title: string;
/**
* Standing granted by completing challenge.
* @type {number}
*/
standing: number;
/**
* This challenge as a string
* @type {string}
*/
asString: string;
/**
* Get whether or not the challenge is daily
* @returns {boolean} whether the category is daily
*/
isDaily(): boolean;
/**
* Get whether or not this is the weekly root challenge
* @returns {boolean} whether this is the root challenge
*/
isRootChallenge(): boolean;
/**
* Get whether or not the challenge has expired
* @returns {boolean} Whether or not the challenge has expired
*/
isExpired(): boolean;
}
import WorldstateObject from './WorldstateObject.js';