class StatInkExporter
implements GameExporter
import { StatInkExporter } from "https://deno.land/x/s3si@gui-v0.4.16/src/exporters/stat.ink.ts";
Exporter to stat.ink.
This is the default exporter. It will upload each battle detail to stat.ink.
Constructors
new
StatInkExporter(unnamed 0: { statInkApiKey: string; uploadMode: string; env: Env; })Properties
mapPlayer: (player: VsPlayer, index: number) => Promise<StatInkPlayer>
Methods
exportGame(game: Game): Promise<ExportResult>
isTriColor(unnamed 0: VsHistoryDetail): boolean
mapBattle(unnamed 0: VsInfo): Promise<StatInkPostBody>
mapCoop(unnamed 0: CoopInfo): Promise<StatInkCoopPostBody>
mapCoopPlayer(isMyself: boolean, unnamed 1: CoopHistoryPlayerResult): Promise<StatInkCoopPlayer>
mapCoopWeapon(unnamed 0: { name: string; image: Image | null; }): Promise<string | null>
mapGears(unnamed 0: VsPlayer): Promise<StatInkGears>
mapKing(id?: string)
mapLobby(vsDetail: VsHistoryDetail): StatInkPostBody["lobby"]
mapSpecial(unnamed 0: { image: Image; name: string; }): Promise<string | undefined>
mapStage(unnamed 0: VsHistoryDetail): Promise<string>
mapWave(wave: CoopHistoryDetail["waveResults"]["0"]): Promise<StatInkCoopWave>
notExported(unnamed 0: { list: string[]; type: Game["type"]; }): Promise<string[]>