An instance of Cloud Storage that can store data in a multiplayer experience.

Hierarchy (View Summary, Expand)

Constructors

Methods

  • Deletes a value from the persistence backend. Note that the scope must match that which was used when the value was originally saved.

    Parameters

    • key: string
    • readOptions: CloudStorageReadOptions
    • onDeleted: () => void
    • onError: (code: string, description: string) => void

    Returns void

  • Gets a value from the persistence backend. Note that scope must match that which was used when the value was originally saved.

    Parameters

    • key: string
    • readOptions: CloudStorageReadOptions
    • onRetrieved: (
          key: string,
          value:
              | string
              | number
              | boolean
              | vec4
              | vec3
              | quat
              | mat4
              | vec2
              | mat3
              | mat2,
      ) => void
    • onError: (code: string, description: string) => void

    Returns void

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean

  • Lists values from the persistence backend. Note that the scope must match that which was used when the values were originally saved.

    Parameters

    • listOptions: CloudStorageListOptions
    • onRetrieved: (
          values: (
              | string
              | number
              | boolean
              | vec4
              | vec3
              | quat
              | mat4
              | vec2
              | mat3
              | mat2
          )[][],
          cursor: string,
      ) => void
    • onError: (code: string, description: string) => void

    Returns void

  • Sets a value in the persistence backend.

    Parameters

    Returns void

MMNEPVFCICPMFPCPTTAAATR