VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
FileDataHandler Class Reference

Handler class that will take care of storing the data to a file in the streaming assets folder. More...

Public Member Functions

 FileDataHandler (string dataFolderName)
bool SaveData< T > (string relativePath, T data, bool isEncrypted)
 Saves current data iteration.
LoadData< T > (string relativePath, bool isEncrypted)
 Loads data by path name.

Detailed Description

Handler class that will take care of storing the data to a file in the streaming assets folder.

Constructor & Destructor Documentation

◆ FileDataHandler()

FileDataHandler.FileDataHandler ( string dataFolderName)
inline

Member Function Documentation

◆ LoadData< T >()

T FileDataHandler.LoadData< T > ( string relativePath,
bool isEncrypted )
inline

Loads data by path name.

Template Parameters
TType of data we're storing
Parameters
relativePathFolder to take the data from under data folder.
isEncryptedWhether or not the data we're accessing is encrypted.
Returns
Current data
Exceptions
FileNotFoundException

◆ SaveData< T >()

bool FileDataHandler.SaveData< T > ( string relativePath,
T data,
bool isEncrypted )
inline

Saves current data iteration.

Template Parameters
T
Parameters
relativePathSpecific folder to store the data in
dataThe data to store in JSON format
isEncryptedWhether 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: