![]() |
Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
|
Public Member Functions | |
| void | SaveOptions (int profileID, string dataString, bool showLog) |
| Saves the OptionsData, serialized as a string, to disk. | |
| string | LoadOptions (int profileID, bool showLog) |
| Loads the OptionsData, serialized as a string, from disk. | |
| void | DeleteOptions (int profileID) |
| Deletes the saved OptionsData string for a given profile. | |
| int | GetActiveProfile () |
| Returns the active profile ID number, if profiles are enabled. | |
| void | SetActiveProfile (int profileID) |
| Records the active profile ID. | |
| bool | DoesProfileExist (int profileID) |
| Checks if OptionsData for a given profile is stored. | |
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.