UNPKG

warframe-worldstate-parser

Version:

An Open parser for Warframe's Worldstate in Javascript

48 lines (47 loc) 1.14 kB
import { ContentTimestamp } from "warframe-worldstate-data/utilities"; //#region lib/models/WorldStateObject.d.ts interface Identifier { $id?: string; $oid?: string; } interface BaseContentObject { _id?: Identifier; Activation?: ContentTimestamp; Expiry?: ContentTimestamp; } /** * Represents a generic object from WorldState */ declare class WorldStateObject { /** * The object's id field */ id?: string; /** * The date and time at which the WorldStateObject started */ activation?: Date; /** * The date and time at which the WorldStateObject ends */ expiry?: Date; /** * @param data The object data */ constructor(data: BaseContentObject); /** * Whether the void trader is active (at time of object creation) */ get active(): boolean; /** * A string indicating how long it will take for the trader to arrive * (at time of object creation) */ get startString(): string | undefined; /** * Time delta string from now to the end */ get endString(): string | undefined; } //#endregion export { Identifier as n, WorldStateObject as r, BaseContentObject as t };