Class WorldSettingArrayStore<T>
Type Parameters
Hierarchy
- CrudArrayObjectStore<T>
- WorldSettingArrayStore (view full)
Index
Constructors
Accessors
Methods
Constructors
constructor
- new
World <T>(opts?): WorldSettingArrayStore<T>Setting Array Store Type Parameters
Parameters
Optional
opts: {
gameSettings?: any;
key?: string;
namespace?: string;
rest?: CrudArrayObjectStoreParams;
}Optional
gameSettings ?: anyAn instance of TJSGameSettings.
Optional
key?: stringGame setting 'key' field.
Optional
namespace?: stringGame setting 'namespace' field.
Optional
rest?: CrudArrayObjectStoreParamsRest of CrudArrayObjectStore parameters.
Returns WorldSettingArrayStore<T>
Accessors
Protected
_data
dataReducer
- get dataReducer(): DynArrayReducer<T>
Returns DynArrayReducer<T>
The data reducer.
key
- get key(): string
Returns string
The Foundry game setting key.
length
- get length(): number
Returns number
The length of all data.
namespace
- get namespace(): string
Returns string
The Foundry game setting namespace.
Static
EntryStore
- get EntryStore(): ObjectEntryStore
Returns ObjectEntryStore
The default object entry store constructor.
Methods
[iterator]
clearEntries
createEntry
deleteEntry
duplicateEntry
findEntry
getEntry
set
- set(updateList): void
Sets the children store data by 'id', adds new entry store instances, or removes entries that are no longer in the update list.
Parameters
- updateList: T[]
Returns void
subscribe
- subscribe(handler): Unsubscriber
Parameters
- handler: Subscriber<T[]>
Callback function that is invoked on update / changes.
Returns Unsubscriber
Unsubscribe function.
- handler: Subscriber<T[]>
toJSON
updateSubscribers
- update
Subscribers (update?): void Updates subscribers.
Parameters
Optional
update: ArrayObjectUpdateData
Returns void
Optional parameters.