UNPKG

fnbr

Version:

A library to interact with Epic Games' Fortnite HTTP and XMPP services

43 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Meta_1 = tslib_1.__importDefault(require("../../util/Meta")); /** * Represents a party's meta */ class PartyMeta extends Meta_1.default { /** * The currently selected island */ get island() { var _a; return (_a = this.get('Default:SelectedIsland_j')) === null || _a === void 0 ? void 0 : _a.SelectedIsland; } /** * The region ID (EU, NAE, NAW, etc.) */ get regionId() { const regionId = this.get('Default:RegionId_s'); if (typeof regionId !== 'string' || regionId.length === 0) { return undefined; } return regionId; } /** * The custom matchmaking key */ get customMatchmakingKey() { const key = this.get('Default:CustomMatchKey_s'); if (typeof key !== 'string' || key.length === 0) return undefined; return key; } /** * The squad fill status */ get squadFill() { return !!this.get('Default:AthenaSquadFill_b'); } } exports.default = PartyMeta; //# sourceMappingURL=PartyMeta.js.map