class FileExporter
implements GameExporter
import { FileExporter } from "https://deno.land/x/s3si@gui-v0.4.16/src/exporters/file.ts";
Exporter to file.
This is useful for debugging. It will write each battle detail to a file. Timestamp is used as filename. Example: 20210101T000000Z.json
Methods
exportedGames(unnamed 0: { uid: string; type: Game["type"]; filter?: (game: Game) => boolean; }): Promise<{ id: string; getContent: () => Promise<Game>; }[]>
Get all exported files
exportGame(info: Game): Promise<ExportResult>
exportSummary(summary: Summary): Promise<ExportResult>
getFilenameById(id: string)
notExported(unnamed 0: { list: string[]; }): Promise<string[]>