Options
All
  • Public
  • Public/Protected
  • All
Menu

Class responsible for generating and restoring save files.

Hierarchy

  • Snapshot

Index

Constructors

Properties

_snapshot: SnapshotData
data: GoldenSun
game: Game
SNAPSHOT_FILENAME: "save.json" = "save.json"

Accessors

Methods

  • clear_snapshot(): void
  • Remove all snapshot references so they can't be accessible anymore.

    Returns void

  • generate_snapshot(): void
  • Generates a snapshot of the current game state and opens the download box.

    Returns void

  • download_json(json: Object, filename: string): void
  • Downloads a json into a file.

    Parameters

    • json: Object

      the js object object.

    • filename: string

      the destination file name.

    Returns void

Generated using TypeDoc