Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
void | SaveOptions (int profileID, string dataString, bool showLog) |
Saves the OptionsData, serialized as a string, to disk. More... | |
string | LoadOptions (int profileID, bool showLog) |
Loads the OptionsData, serialized as a string, from disk. More... | |
void | DeleteOptions (int profileID) |
Deletes the saved OptionsData string for a given profile. More... | |
int | GetActiveProfile () |
Returns the active profile ID number, if profiles are enabled More... | |
void | SetActiveProfile (int profileID) |
Records the active profile ID More... | |
bool | DoesProfileExist (int profileID) |
Checks if OptionsData for a given profile is stored More... | |
A file handler that stores Options data in PlayerPrefs
void AC.OptionsFileHandler_PlayerPrefs.DeleteOptions | ( | int | profileID | ) |
Deletes the saved OptionsData string for a given profile.
profileID | The ID number of the profile to delete</parm> |
Implements AC.iOptionsFileHandler.
bool AC.OptionsFileHandler_PlayerPrefs.DoesProfileExist | ( | int | profileID | ) |
Checks if OptionsData for a given profile is stored
profileID | The ID number of the profile to check for</parm>
|
Implements AC.iOptionsFileHandler.
int AC.OptionsFileHandler_PlayerPrefs.GetActiveProfile | ( | ) |
Returns the active profile ID number, if profiles are enabled
Implements AC.iOptionsFileHandler.
string AC.OptionsFileHandler_PlayerPrefs.LoadOptions | ( | int | profileID, |
bool | showLog | ||
) |
Loads the OptionsData, serialized as a string, from disk.
profileID | The ID number of the profile to be loaded, or 0 if profiles are not enabled |
Implements AC.iOptionsFileHandler.
void AC.OptionsFileHandler_PlayerPrefs.SaveOptions | ( | int | profileID, |
string | dataString, | ||
bool | showLog | ||
) |
Saves the OptionsData, serialized as a string, to disk.
profileID | The ID number of the profile to be saved, or 0 if profiles are not enabled |
dataString | The serialized data to save |
showLog | If True, a Console message upon succesful saving is requested |
Implements AC.iOptionsFileHandler.
void AC.OptionsFileHandler_PlayerPrefs.SetActiveProfile | ( | int | profileID | ) |
Records the active profile ID
profileID | The ID number of the profile to set as active</parm> |
Implements AC.iOptionsFileHandler.