@kitten-science/kitten-scientists
Version:
Add-on for the wonderful incremental browser game: https://kittensgame.com/web/
16 lines • 601 B
TypeScript
import type { KGSaveData } from "../types/_save.js";
import type { GamePage } from "../types/game.js";
export declare class SavegameLoader {
private readonly _game;
constructor(game: GamePage);
/**
* 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