UNPKG

warframe-worldstate-parser

Version:

An Open parser for Warframe's Worldstate in Javascript

65 lines (64 loc) 1.44 kB
/** * Represents the current Earth Day/Night Cycle * @augments {WorldstateObject} */ export default class EarthCycle extends WorldstateObject { constructor(); /** * Whether or not this it's daytime * @type {boolean} */ isDay: boolean; /** * Current cycle state. One of `day`, `night` * @type {string} */ state: string; /** * Time remaining string * @type {string} */ timeLeft: string; id: string; /** * Get whether or not the event has expired * @returns {boolean} Whether or not the event has expired */ getExpired(): boolean; #private; } export type EarthCycle = { /** * The date and time at which the event ends */ expiry: Date; /** * The date and time at which the event started */ activation: Date; /** * Whether or not this it's daytime */ isDay: boolean; /** * Current cycle state. One of `day`, `night` */ state: string; /** * Time remaining string */ timeLeft: string; /** * The date and time at which the event ends, rounded to the nearest minute */ rounded: Date; /** * The date and time at which the event started, 4 hours before the end */ start: Date; /** * Whether or not the event has expired */ expired: boolean; }; import WorldstateObject from './WorldstateObject.js';