UNPKG

genshin-manager

Version:

<div align="center"> <p> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https://img.shields.io/npm/v/genshin-manager.svg?maxAge=3600" alt="npm version" /></a> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https:

52 lines (51 loc) 1.07 kB
import { ImageAssets } from '../models/assets/ImageAssets'; import { ItemType, MaterialType } from '../types'; /** * Class of material */ export declare class Material { /** * Material ID */ readonly id: number; /** * Material name */ readonly name: string; /** * Material description */ readonly description: string; /** * Material icon */ readonly icon: ImageAssets; /** * Material pictures */ readonly pictures: ImageAssets[]; /** * Material type */ readonly itemType: ItemType; /** * Material type */ readonly materialType?: MaterialType; /** * Create a Material * @param materialId Material ID */ constructor(materialId: number); /** * Get all material IDs * @returns All material IDs */ static get allMaterialIds(): number[]; /** * Get material ID by name * @param name Material name * @returns Material ID */ static getMaterialIdByName(name: string): number[]; }