IdaJS
    Preparing search index...

    Variable useGameStore

    useGameStore: (...args: string[]) => Record<string, any>

    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

        Returns Record<string, any>