Provides access to the game state object, that you can use to persist any game state variables.
Keep the types you use here simple, as they will be serialized to JSON.
Type Declaration
(...args:string[]):Record<string,any>
Parameters
...args: string[]
Optional path of the subobject in the store. For example useGameStore("moon", "quests") will store state in gameSaveData.moon.quests
Provides access to the game state object, that you can use to persist any game state variables. Keep the types you use here simple, as they will be serialized to JSON.