![]() |
CloudOnce v2.7.5
Unified Game Services API
|
A preference that is stored in the cloud. More...
Public Member Functions | |
| void | Load (bool force=false) |
| Invokes the ValueLoader. More... | |
| void | Flush () |
| Invokes the ValueSetter. More... | |
| void | Reset () |
| Resets the value back to it's default value. More... | |
| void | Flush () |
Invokes the cloud preference's delegate used to save data. More... | |
| void | Load (bool force=false) |
Invokes the cloud preference's delegate used to load data. More... | |
| void | Reset () |
| Resets the IPersistent to default/initial value. More... | |
Protected Member Functions | |
| PersistentValue (string key, PersistenceType type, T value, T defaultValue, ValueLoaderDelegate valueLoader, ValueSetterDelegate valueSetter) | |
| A preference that is stored in the cloud. Automatically added to the DataManager. More... | |
| delegate T | ValueLoaderDelegate (string key, T defaultValue) |
| delegate void | ValueSetterDelegate (string key, T value, PersistenceType persistenceType) |
Properties | |
| string | Key [get] |
| The unique identifier used to identify this particular value. | |
| T | Value [get, set] |
| The current value for this preference. Takes PersistenceType into account when setting. | |
| PersistenceType | PersistenceType [get] |
| The method of conflict resolution to be used in case of a data conflict. Can happen if the data is altered by a different device. | |
| T | DefaultValue [get] |
| The value the preference will be set to if it is ever reset. | |
A preference that is stored in the cloud.
| T | The type of preference. |
|
inlineprotected |
A preference that is stored in the cloud. Automatically added to the DataManager.
| key | A unique identifier used to identify this particular value. |
| type | The method of conflict resolution to be used in case of a data conflict. Can happen if the data is altered by a different device. |
| value | The starting value for this preference. |
| defaultValue | The value the preference will be set to if it is ever reset. |
| valueLoader | delegate used to get the preference. |
| valueSetter | delegate used to set the preference. |
|
inline |
Invokes the ValueSetter.
Implements CloudOnce.Internal.IPersistent.
|
inline |
Invokes the ValueLoader.
Implements CloudOnce.Internal.IPersistent.
|
inline |
Resets the value back to it's default value.
Implements CloudOnce.Internal.IPersistent.