load_game
Loads a SaveGame from a slot and reports its instance, class, and path; flags empty, unreadable, or wrong-class slots as failures.
Instructions
Load the SaveGame stored in a slot with LoadGameFromSlot and report the transient object: save_game_instance, save_game_class and save_game_path. success is false when the slot is empty or unreadable, or holds a class other than save_game_class; does_save_game_exist tells missing from corrupt.
Returns: { slot_name: string, user_index: int, success: bool, save_game_instance: string, save_game_class: string, save_game_path: string, expected_class?: string, error: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot_name | Yes | Save slot name to load from | |
| user_index | No | Platform user index for the save system; default 0 (the generic desktop save system ignores it) | |
| save_game_class | No | Optional SaveGame subclass the slot is expected to hold. A slot file records its own class and is rebuilt as that; when the loaded object is not this class (or a child of it) the load is reported as failed. An unknown class name is an error. |