Class SaveDataHandler
A handler class for registering your SaveDataCache.
public static class SaveDataHandler
- Inheritance
-
SaveDataHandler
- Inherited Members
Methods
RegisterSaveDataCache<T>()
Registers your SaveDataCache to be automatically loaded and saved whenever the game is.
public static T RegisterSaveDataCache<T>() where T : SaveDataCache, new()
Returns
- T
- An instance of the
T
: SaveDataCache with values loaded from the json file on disk whenever a save slot is loaded.
Type Parameters
T
- A class derived from SaveDataCache to hold your save data.