Singleton class to be called for saving and loading. More...


Public Types | |
| enum | DataType { Level , Game , PlayerPref } |
Public Member Functions | |
| void | NewGame () |
| void | NewConfigs () |
| void | NewLevels () |
| void | LoadGame () |
| Load data that was serialized. | |
| void | LoadLevel (Level level) |
| Update the values in the associated level struct. | |
| int | LoadIntData (string key) |
| Loads int PlayerPref values by their key name. | |
| float | LoadFloatData (string key) |
| Loads float PlayerPref values by their key name. | |
| string | LoadStringData (string key) |
| Loads string PlayerPref values by their key name. | |
| void | SaveGame () |
| Save data that needs to be serialized. | |
| void | SaveLevel (Level level) |
| Save level data. | |
| void | SaveConfigData (string key, int value) |
| Save PlayerPref values that are ints. | |
| void | SaveConfigData (string key, float value) |
| Save PlayerPref values that are floats. | |
| void | SaveConfigData (string key, string value) |
| Save PlayerPref values that are strings. | |
Data Fields | |
| bool | hasLoaded |
| int | objectsWithDataOpened = 0 |
Properties | |
| static SaveManager | Instance [get] |
| GameData | gameData [get] |
| ConfigData | configData [get] |
| LevelData | levelData [get] |
Events | |
| static Action | StartSavingEvent |
Singleton class to be called for saving and loading.
| enum SaveManager.DataType |
|
inline |
Loads float PlayerPref values by their key name.
| key |

|
inline |
Load data that was serialized.

|
inline |
Loads int PlayerPref values by their key name.
| key |

|
inline |
Update the values in the associated level struct.
| level |


|
inline |
Loads string PlayerPref values by their key name.
| key |

|
inline |

|
inline |

|
inline |

|
inline |
Save PlayerPref values that are floats.
| key | |
| value |

|
inline |
Save PlayerPref values that are ints.
| key | |
| value |

|
inline |
Save PlayerPref values that are strings.
| key | |
| value |

|
inline |
Save data that needs to be serialized.
|
inline |
Save level data.
| level | The level struct that stores the information that needs to be saved. |


| bool SaveManager.hasLoaded |
| int SaveManager.objectsWithDataOpened = 0 |
|
get |
|
get |
|
staticget |
|
get |
|
static |