• Restore the game using the given Save State.

    options.profileNames is the list of profiles to restore: only objects, variables etc... tagged with at least one of these profiles will be restored (or recreated if they don't exist, or deleted if not in the save state). Others will be left untouched.

    If options.clearSceneStack is true, all the scenes will be unloaded and re-created (meaning all instances will be re-created, variables will go back to their initial values, etc...). Otherwise, the existing scenes will be updated (or unloaded or created if the save state has different scenes).

    Parameters

    • runtimeGame: RuntimeGame
    • saveState: GameSaveState
    • options: {
          clearSceneStack: boolean;
          profileNames: string[];
      }
      • clearSceneStack: boolean
      • profileNames: string[]

    Returns void