Click or drag to resize
GeneralRulesLoadGame Method
Restore the state of the objects contained in the specified save slot.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void LoadGame(
	int Slot,
	bool InMemory
)

Parameters

Slot
Type: SystemInt32
Specifies a number that uniquely identifies which game to load
InMemory
Type: SystemBoolean
If true, the memory slot is used, otherwise the file associated with the slot is loaded
Remarks
If there is no data in the specified slot, an error occurs. Use SaveExists(Int32, Boolean) to determine if data is available to load from a particular slot. Counters that were not included in the SaveUnit will retain the same value they had before the game was loaded. Similarly, maps that are not included in the save unit will retain the same state they had before the game was loaded instead of being reset or loaded from the file. One exception is if AllMaps was ever included in the SaveUnit (even if some maps were later excluded). In this case, all maps that were not included in the SaveUnit will be reset next time they are visited.
See Also