Options
All
  • Public
  • Public/Protected
  • All
Menu
deprecated

Use DataBase class instead

Hierarchy

  • DataSave

Index

Properties

dataSaves: {} = {}

Property containing all initialized DataSaves

Type declaration

Accessors

  • get id(): string

Methods

  • clearAll(): void
  • delete(key: string): void
  • fetchScoreSave(): any
  • get(key: string): any
  • has(key: string): boolean
  • Checks if a saved data entry exists

    Parameters

    • key: string

      The name of the entry to look for

    Returns boolean

  • listKeys(): string[]
  • set(key: string, val: any): void
  • Sets a saved data entry to a new value

    Parameters

    • key: string

      The name of the entry to look for

    • val: any

      The new value for the entry

    Returns void

  • toScoreString(data?: Obj): string
  • Converts this DataSave to a Score save string

    Parameters

    • Optional data: Obj

    Returns string

    A string representing a Score save for this DataSave

  • exists(id: string): boolean
  • Checks if a DataSave has already been created

    Parameters

    • id: string

      An id used to refer to a DataSave

    Returns boolean

    A boolean representing whether the DataSave is created or not

  • Gets the DataSave for the provided id

    Parameters

    • id: string

      An id used to refer to a DataSave

    Returns DataSave

    A DataSave with the provided id

  • getAllScoreSaves(id: string): RegExpMatchArray
  • Gets all DataSave scores

    Parameters

    • id: string

      An id used as to target a specific DataSave

    Returns RegExpMatchArray

    An array of strings respresenting all DataSave scores

  • initialize(id: string, defaultData: Obj): DataSave
  • Initializes a DataSave to be able to be used in scripts

    Parameters

    • id: string

      An id used to refer to a DataSave

    • defaultData: Obj

    Returns DataSave

    A Scoreboard with the provided id

  • initialized(id: string): boolean
  • Checks if a DataSave has already been initialized

    Parameters

    • id: string

      An id used to refer to a DataSave

    Returns boolean

    A boolean representing whether the DataSave is initialized or not

Generated using TypeDoc version 0.22.18, the 7/5/2022