Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IndexedDbDataStorage

Hierarchy

  • IndexedDbDataStorage

Implements

Index

Constructors

constructor

Methods

deleteAll

  • deleteAll(callback: function): void
  • Parameters

    • callback: function
        • (): void
        • Returns void

    Returns void

deleteSlot

  • deleteSlot(slot: number, callback: function): void
  • Parameters

    • slot: number
    • callback: function
        • (slot: number, success: boolean): void
        • Parameters

          • slot: number
          • success: boolean

          Returns void

    Returns void

isEnabled

  • isEnabled(): boolean
  • Returns boolean

isReady

  • isReady(): boolean
  • Returns boolean

isSlotUsed

  • isSlotUsed(slot: number, callback: function, interval?: number): boolean
  • Parameters

    • slot: number
    • callback: function
        • (slot: number, isUsed: boolean): void
        • Parameters

          • slot: number
          • isUsed: boolean

          Returns void

    • Optional interval: number

    Returns boolean

loadFromSlot

  • loadFromSlot(slot: number, saveObject: SaveObject, callback: function, interval?: number): boolean
  • Parameters

    • slot: number
    • saveObject: SaveObject
    • callback: function
        • (slot: number, success: boolean): void
        • Parameters

          • slot: number
          • success: boolean

          Returns void

    • Optional interval: number

    Returns boolean

saveToSlot

  • saveToSlot(slot: number, saveObject: SaveObject, callback: function, fakeSave?: boolean): void
  • Parameters

    • slot: number
    • saveObject: SaveObject
    • callback: function
        • (slot: number, bytes: number): void
        • Parameters

          • slot: number
          • bytes: number

          Returns void

    • Default value fakeSave: boolean = true

    Returns void

transferSaves

  • transferSaves(): void

Generated using TypeDoc