UNPKG

@kitten-science/kitten-scientists

Version:

Add-on for the wonderful incremental browser game: https://kittensgame.com/web/

15 lines 553 B
import type { Game, KGSaveData } from "../types/index.js"; export declare class SavegameLoader { private readonly _game; constructor(game: Game); /** * Conveniently wraps the savegame loading process in an async construct. * * @param data The savegame data to load. We accept `null` here for convenience * when dealing with `import`ed save game data. * @returns Nothing */ load(data: string | null): Promise<void>; loadRaw(data: KGSaveData): Promise<void>; } //# sourceMappingURL=SavegameLoader.d.ts.map