Handler class that will take care of storing the data to a file in the streaming assets folder.
More...
|
| | FileDataHandler (string dataFolderName) |
| bool | SaveData< T > (string relativePath, T data, bool isEncrypted) |
| | Saves current data iteration.
|
| T | LoadData< T > (string relativePath, bool isEncrypted) |
| | Loads data by path name.
|
Handler class that will take care of storing the data to a file in the streaming assets folder.
◆ FileDataHandler()
| FileDataHandler.FileDataHandler |
( |
string | dataFolderName | ) |
|
|
inline |
◆ LoadData< T >()
| T FileDataHandler.LoadData< T > |
( |
string | relativePath, |
|
|
bool | isEncrypted ) |
|
inline |
Loads data by path name.
- Template Parameters
-
| T | Type of data we're storing |
- Parameters
-
| relativePath | Folder to take the data from under data folder. |
| isEncrypted | Whether or not the data we're accessing is encrypted. |
- Returns
- Current data
- Exceptions
-
◆ SaveData< T >()
| bool FileDataHandler.SaveData< T > |
( |
string | relativePath, |
|
|
T | data, |
|
|
bool | isEncrypted ) |
|
inline |
Saves current data iteration.
- Template Parameters
-
- Parameters
-
| relativePath | Specific folder to store the data in |
| data | The data to store in JSON format |
| isEncrypted | Whether or not we want to hide the data from users (slower) |
- Returns
- Whether or not the data saved
The documentation for this class was generated from the following file: