fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
26 lines • 853 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const STWItem_1 = tslib_1.__importDefault(require("./STWItem"));
/**
* Represents a Save The World profile's locker
*/
class STWLocker extends STWItem_1.default {
/**
* @param client The main client
* @param id The item ID
* @param data The locker data
*/
constructor(client, id, data) {
super(client, id, data);
this.banner = {
icon: data.attributes.banner_icon_template,
color: data.attributes.banner_color_template,
};
this.lockerName = data.attributes.locker_name;
this.useCount = data.attributes.use_count;
this.slots = data.attributes.locker_slots_data.slots;
}
}
exports.default = STWLocker;
//# sourceMappingURL=STWLocker.js.map