Class TJSThemeStore
Index
Constructors
constructor
- new TJSThemeStore(options: TJSThemeStore.Options): TJSThemeStore
Parameters
- options: TJSThemeStore.Options
Options
Returns TJSThemeStore
- options: TJSThemeStore.Options
Methods
set
- set(themeData: TJSThemeStore.Data): this
Sets the theme store with new data.
Parameters
- themeData: TJSThemeStore.Data
Returns this
This theme store instance.
subscribe
- subscribe(handler: Subscriber<TJSThemeStore.Data>): Unsubscriber
Parameters
- handler: Subscriber<TJSThemeStore.Data>
Callback function that is invoked on update / changes. Receives copy of the theme data.
Returns Unsubscriber
Unsubscribe function.
- handler: Subscriber<TJSThemeStore.Data>
Must be constructed from a TJSGameSettings instance
init
/ initialize method called from theready
Foundry VTT hook.