Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDataStorage

Hierarchy

  • IDataStorage

Implemented by

Index

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): void
  • Parameters

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

          • slot: number
          • success: boolean

          Returns void

    Returns void

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

    • Optional fakeSave: boolean

    Returns void

transferSaves

  • transferSaves(): void
  • Returns void

Generated using TypeDoc