Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StorageManager

The static class that manages storage of save game data.

Hierarchy

  • StorageManager

Index

Constructors

Protected constructor

Methods

Static backup

  • backup(savefileId: number): void

Static backupExists

  • backupExists(savefileId: number): boolean

Static cleanBackup

  • cleanBackup(savefileId: number): boolean

Static exists

  • exists(savefileId: number): boolean

Static isLocalMode

  • isLocalMode(): boolean

Static load

  • load(savefileId: number): string

Static loadFromLocalBackupFile

  • loadFromLocalBackupFile(savefileId: number): string

Static loadFromLocalFile

  • loadFromLocalFile(savefileId: number): string

Static loadFromWebStorage

  • loadFromWebStorage(savefileId: number): string

Static loadFromWebStorageBackup

  • loadFromWebStorageBackup(savefileId: number): string

Static localFileBackupExists

  • localFileBackupExists(savefileId: number): boolean

Static localFileDirectoryPath

  • localFileDirectoryPath(): string

Static localFileExists

  • localFileExists(savefileId: number): boolean

Static localFilePath

  • localFilePath(savefileId: number): string

Static remove

  • remove(savefileId: number): void

Static removeLocalFile

  • removeLocalFile(savefileId: number): void

Static removeWebStorage

  • removeWebStorage(savefileId: number): void

Static restoreBackup

  • restoreBackup(savefileId: number): void

Static save

  • save(savefileId: number, json: string): void

Static saveToLocalFile

  • saveToLocalFile(savefileId: number, json: string): void

Static saveToWebStorage

  • saveToWebStorage(savefileId: number, json: string): void

Static webStorageBackupExists

  • webStorageBackupExists(savefileId: number): boolean

Static webStorageExists

  • webStorageExists(savefileId: number): boolean

Static webStorageKey

  • webStorageKey(savefileId: number): string

Generated using TypeDoc