Skip to content

Profectus / game/settings / loadSettings

Function: loadSettings() ​

loadSettings(): void

Loads the player settings from localStorage. Calls the game/events.GlobalEvents.loadSettings event for custom properties to be included. Custom properties should be added by the file they relate to, so they won't be included if the file is tree shaken away. Custom properties should also register the field to modify said setting using registerSettingField.

Returns ​

void

Defined in ​

profectus/src/game/settings.ts:84