Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IAsyncDataStorage

Hierarchy

  • IAsyncDataStorage

Implemented by

Index

Methods

deleteAllData

  • Returns Promise<void>

deleteAllSlots

  • deleteAllSlots(): Promise<boolean>
  • Returns Promise<boolean>

deleteSlot

  • deleteSlot(slot: number): Promise<boolean>
  • Parameters

    • slot: number

    Returns Promise<boolean>

isEnabled

  • isEnabled(): boolean
  • Returns boolean

isReady

  • isReady(): boolean
  • Returns boolean

isSlotUsed

  • isSlotUsed(slot: number, interval?: undefined | number): Promise<boolean>
  • Parameters

    • slot: number
    • Optional interval: undefined | number

    Returns Promise<boolean>

loadFromSlot

  • Parameters

    • slot: number

    Returns Promise<ISaveObject>

saveToSlot

  • saveToSlot(slot: number, saveObject: ISaveObject, unloading?: undefined | false | true): Promise<number>
  • Parameters

    • slot: number
    • saveObject: ISaveObject
    • Optional unloading: undefined | false | true

    Returns Promise<number>

Generated using TypeDoc