API Docs for: 1.13.1
Show:

game.Storage Class

Extends game.Class
Module: storage

Local storage.

Item Index

Methods

Attributes

Methods

get

(
  • key
  • [defaultValue]
)

Get key from local storage.

Parameters:

  • key String
  • [defaultValue] optional

Returns:

:

value

has

(
  • key
)
Boolean

Check if a key is in local storage.

Parameters:

  • key String

Returns:

Boolean:

remove

(
  • key
)

Remove key from local storage.

Parameters:

  • key String

reset

()

Reset local storage. This removes ALL keys.

set

(
  • key
  • value
)

Set value to local storage.

Parameters:

  • key String
  • value

Attributes

id

String