UNPKG

enkanetwork

Version:

API wrapper for enka.network written on TypeScript which provides localization, caching and convenience

18 lines (17 loc) 591 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CharacterConstellation = void 0; class CharacterConstellation { id; icon; name; unlocked; constructor(assets, language, talent, talents) { const constellation = assets.constellations.getById(talent); this.id = talent; this.icon = assets.getAssetPath(constellation.icon); this.name = assets.constellations.getName(constellation, language); this.unlocked = talents.includes(talent); } } exports.CharacterConstellation = CharacterConstellation;