Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/s3si/src/exporters/stat.ink.ts>StatInkExporter

Export your battles from SplatNet to https://stat.ink
Latest
class StatInkExporter
implements GameExporter
import { StatInkExporter } from "https://deno.land/x/s3si@gui-v0.4.20/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

private
api: StatInkAPI
private
uploadMode: string
mapPlayer: (player: VsPlayer, index: number) => Promise<StatInkPlayer>
name: string

Methods

exportGame(game: Game): Promise<ExportResult>
isRandom(image: Image | null): boolean
isTriColor(unnamed 0: VsHistoryDetail): boolean
mapBattle(unnamed 0: VsInfo): Promise<StatInkPostBody>
mapColor(color: Color): string | undefined
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)
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[]>