Class GameSettingArrayObject<S>
Type Parameters
- S extends BaseObjectEntryStore<any>Store type. 
                 
                    
                  Hierarchy
              
              - CrudArrayObjectStore<S>- GameSettingArrayObject (View Summary)
 
Index
Constructors
Accessors
Methods
Constructors
constructor
- new GameSettingArrayObject<S extends BaseObjectEntryStore<any>>(
 options: GameSettingArrayObject.Options.Config<S>,
 ): GameSettingArrayObject<S>Type Parameters- S extends BaseObjectEntryStore<any>
 Parameters- options: GameSettingArrayObject.Options.Config<S>GameSettingArrayObject Options. 
 Returns GameSettingArrayObject<S>
Accessors
Protected_data 
- Returns S[]- The internal data array tracked allowing child classes direct access. 
canEdit 
- get canEdit(): booleanCan the current user edit / save this instance to the Foundry DB. Returns boolean
dataReducer 
- Returns DynArrayReducer<S>- The data reducer. 
key
- get key(): stringReturns stringThe Foundry game setting key.
length
- get length(): numberReturns numberThe length of all data. 
namespace
- get namespace(): stringReturns stringThe Foundry game setting namespace.
scope
- get scope(): stringReturns stringThe Foundry game setting scope.
StaticEntryStore 
- Returns typeof FVTTObjectEntryStore- The default object entry store constructor that can facilitate the creation of the required GameSettingArrayObject.Options.Config.StoreClass and generic - Ttype parameter.
Methods
[iterator]
clearEntries 
- Removes all child store entries. - Returns void
createEntry 
- Creates a new store from given data. - Parameters- entryData: ExtractDataType<S>
 - Returns S- Associated store with entry data. 
deleteEntry 
- Deletes a given entry store by ID from this world setting array store instance. - Parameters- id: stringID of entry to delete. 
 - Returns boolean- Delete operation successful. 
- id: string
duplicateEntry 
- Duplicates an entry store by the given ID. - Parameters- id: stringUUIDv4 string. 
 - Returns S- Instance of StoreClass. 
- id: string
findEntry 
getEntry 
- Finds an entry store instance by 'id' / UUIDv4. - Parameters- id: stringA UUIDv4 string. 
 - Returns S- Entry store instance. 
- id: string
set
- 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: ExtractDataType<S>[]
 - Returns void
subscribe
- Parameters- handler: Subscriber<S[]>Callback function that is invoked on update / changes. 
 - Returns Unsubscriber- Unsubscribe function. 
- handler: Subscriber<S[]>
toJSON 
- Returns S[]
updateSubscribers 
- Updates subscribers, but provides special handling when a - crudDispatchfunction is attached. When- updateis an object with a valid UUIDv4 string as the id property the- crudDispatchfunction is invoked along with the data payload.- Parameters- Optionalupdate: boolean | ExtractDataType<S>- A boolean indicating that subscribers should be notified otherwise 
 - Returns void
Defines a CrudArrayObjectStore with streamlined configuration through TJSGameSettings to register a
worldorusergame setting.GameSettingArrayObjectis automatically associated as the store receiving updates with the associated game setting.