warframe-worldstate-parser
Version:
An Open parser for Warframe's Worldstate in Javascript
61 lines (60 loc) • 1.23 kB
TypeScript
/**
* Stores and parses kuva data from https://10o.io/kuvalog.json
* @property {ExternalMission[]} kuva currently active kuva missions
* @property {ExternalMission} arbitration current arbitration
*/
export default class Kuva {
constructor({ kuvaData, locale, logger }: {
kuvaData: any;
locale: any;
logger: any;
});
#private;
}
/**
* External mission data retrieved from https://10o.io/kuvalog.json
*/
export type ExternalMission = {
/**
* start time
*/
activation: Date;
/**
* end timer
*/
expiry: Date;
/**
* formatted node name with planet
*/
node: string;
/**
* Enemy on tile
*/
enemy: string;
/**
* Mission type of node
*/
type: string;
/**
* whether or not the tile requires archwing
*/
archwing: boolean;
/**
* whether or not the tile requires
* sumbersible archwing
*/
sharkwing: boolean;
};
/**
* Stores and parses kuva data from https://10o.io/kuvalog.json
*/
export type Kuva = {
/**
* currently active kuva missions
*/
kuva: ExternalMission[];
/**
* current arbitration
*/
arbitration: ExternalMission;
};