enka-network-api
Version:
Enka-network API wrapper for Genshin Impact.
25 lines (24 loc) • 816 B
TypeScript
import { EnkaClient } from "../client/EnkaClient";
import { TextAssets } from "./assets/TextAssets";
import { ExcelJsonObject } from "../client/ExcelTransformer";
export declare const elementList: [null, "Fire", "Water", "Grass", "Electric", "Ice", null, "Wind", "Rock"];
export declare class Element {
readonly id: ElementType;
readonly enka: EnkaClient;
readonly name: TextAssets;
readonly _data: ExcelJsonObject;
constructor(data: ExcelJsonObject, enka: EnkaClient);
static getByElementType(elementType: ElementType, enka: EnkaClient): Element;
}
/**
* ElementType|In-game Name
* ---|---
* Wind|Anemo
* Rock|Geo
* Electric|Electro
* Grass|Dendro
* Water|Hydro
* Fire|Pyro
* Ice|Cryo
*/
export type ElementType = "Wind" | "Rock" | "Electric" | "Grass" | "Water" | "Fire" | "Ice";