UNPKG

warframe-worldstate-parser

Version:

An Open parser for Warframe's Worldstate in Javascript

26 lines (25 loc) 1 kB
/** * A void trader inventory item * @property {string} item The name of the inventory item * @property {number|string} ducats Ducat cost of the item * @property {number|string} credits Credit cost of the item */ export default class VoidTraderItem { /** * @param {object} data The void trader item data * @param {string} data.ItemType Worldstate Item i18n path * @param {string} data.PrimePrice Ducat cost of the item * @param {string} data.RegularPrice Credit price of the item * @param {Dependency} deps The dependencies object * @param {string} deps.locale Locale to use for translations */ constructor({ ItemType, PrimePrice, RegularPrice }: { ItemType: string; PrimePrice: string; RegularPrice: string; }, { locale }?: Dependency); uniqueName: string; item: any; ducats: number; credits: number; }