Provides an extension to #runtime/svelte/store/reducer/array-object!ObjectEntryStore adding the FVTTObjectEntryStore.canEdit accessor which when paired with GameSettingArrayObject forwards on whether the current Foundry user can edit / save to the Foundry DB.

This is the base ObjectEntryStore available from a direct import or through GameSettingArrayObject.EntryStore accessor.

Type Parameters

Hierarchy
Index

Constructors

Accessors

  • get _data(): T

    Returns T

    The object data tracked by this store.

  • get canEdit(): boolean

    Can the current user edit / save this instance to the Foundry DB.

    Returns boolean

  • get id(): string

    Returns string

    The ID attribute in object data tracked by this store.

Methods

  • To be implemented by child implementations as required by the MinimalWritable contract. You must manually invoke ObjectEntryStore._updateSubscribers to notify subscribers.

    Parameters

    • data: T

      Data to set to store.

    Returns void

  • Returns T

    A JSON data object for the backing data. The default implementation directly returns the backing private data object. You may override this method to clone the data via ObjectEntryStore._data.

  • Invoked by ArrayObjectStore to provide custom duplication. Override this static method in your entry store.

    Type Parameters

    Parameters

    • data: object

      A copy of local data w/ new ID already set.

    • arrayStore: S

      The source ArrayObjectStore instance.

    Returns void