UNPKG

warframe-worldstate-parser

Version:

An Open parser for Warframe's Worldstate in Javascript

54 lines (53 loc) 1.2 kB
/** * Represents the current Earth Day/Night Cycle * @augments {WorldstateObject} */ export default class VallisCycle extends WorldstateObject { constructor(); /** * Whether or not this it's daytime * @type {boolean} */ isWarm: boolean; /** * Current cycle state. One of `warm`, `cold` * @type {string} */ state: string; /** * Time remaining string * @type {string} */ timeLeft: string; id: string; shortString: string; /** * Get whether or not the event has expired * @returns {boolean} whether this event has expired */ getExpired(): boolean; #private; } export type CurrentCycle = { /** * - Current cycle state. One of `warm`, `cold` */ state: string; /** * - Time remaining in the current cycle state */ toNextMinor: number; /** * - Time remaining until the next cycle */ toNextFull: number; /** * - Date and time at which the event started */ timeAtPrevious: Date; /** * - Date and time at which the event start */ timeAtNext: Date; }; import WorldstateObject from './WorldstateObject.js';