UNPKG

enkanetwork

Version:

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

19 lines (18 loc) 601 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProfilePicture = void 0; class ProfilePicture { // Character id id; // Character name in the selected language name; // Character icon icon; constructor(assets, language, profilePicture) { const character = assets.characters.getById(profilePicture.avatarId); this.id = profilePicture.avatarId; this.name = assets.characters.getName(character, language); this.icon = assets.getAssetPath(character.iconName); } } exports.ProfilePicture = ProfilePicture;