UNPKG

warframe-worldstate-parser

Version:

An Open parser for Warframe's Worldstate in Javascript

71 lines (70 loc) 1.7 kB
/** * Represents a persistent enemy * @augments {WorldstateObject} */ export default class PersistentEnemy extends WorldstateObject { /** * @param {object} data The persistent enemy data * @param {object} deps The dependencies object * @param {string} deps.locale Locale to use for translations */ constructor(data: object, { locale }?: { locale: string; }); /** * The enemy's type * @type {string} */ agentType: string; /** * The location tag * @type {string} */ locationTag: string; /** * The enemy's rank * @type {number} */ rank: number; /** * The enemy's remaining health percentage * @type {number} */ healthPercent: number; /** * The percentual damage that the enemy takes when it's defeated * @type {number} */ fleeDamage: number; /** * The region where the enemy is located * @type {string} */ region: string; /** * The last time the enemy was discovered * @type {Date} */ lastDiscoveredTime: Date; /** * The node at which the enemy was last discovered * @type {string} */ lastDiscoveredAt: string; /** * Whether or not the enemy is currently available * @type {boolean} */ isDiscovered: boolean; /** * Whether or not the enemy is using ticketing * @type {boolean} */ isUsingTicketing: boolean; /** * Fake ID incorporating discovery * @type {string} */ pid: string; } import WorldstateObject from './WorldstateObject.js';