SaveKeys - AnduoGames/ThirdCrisisModding GitHub Wiki

SaveKeys let you store and load variables that will be automatically saved to the users savefile. A Savekey can be of type bool, int or string.

To set and get these savekeys, you can use the SaveManager class. Here's an example:

// Gets the savekey named "My UNIQUE Savekey". If it has never been set, the passed default parameter will be returned.
bool mykeyValue = SaveManager.GetKey("My UNIQUE Savekey", false);

// Sets the savekey to the provided value.
SaveManager.SetKey("My UNIQUE Savekey", true);