CloudOnce v2.7.5
Unified Game Services API
CloudOnce.CloudPrefs.CloudUInt Class Reference

Used to store uints in the cloud. More...

Inheritance diagram for CloudOnce.CloudPrefs.CloudUInt:
[legend]
Collaboration diagram for CloudOnce.CloudPrefs.CloudUInt:
[legend]

Public Member Functions

 CloudUInt (string key, PersistenceType persistenceType, uint value=0u)
 Used to store uints in the cloud. More...
 
 CloudUInt (string key, PersistenceType persistenceType, uint value, uint defaultValue)
 Used to store uints in the cloud. More...
 
- Public Member Functions inherited from CloudOnce.Internal.PersistentValue< uint >
void Load (bool force=false)
 Invokes the ValueLoader.
 
void Flush ()
 Invokes the ValueSetter.
 
void Reset ()
 Resets the value back to it's default value.
 

Additional Inherited Members

- Protected Member Functions inherited from CloudOnce.Internal.PersistentValue< uint >
 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 inherited from CloudOnce.Internal.PersistentValue< uint >
string Key [get]
 The unique identifier used to identify this particular value.
 
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.
 
DefaultValue [get]
 The value the preference will be set to if it is ever reset.
 

Detailed Description

Used to store uints in the cloud.

Constructor & Destructor Documentation

◆ CloudUInt() [1/2]

CloudOnce.CloudPrefs.CloudUInt.CloudUInt ( string  key,
PersistenceType  persistenceType,
uint  value = 0u 
)
inline

Used to store uints in the cloud.

Parameters
keyA unique identifier used to identify this particular value.
persistenceTypeThe method of conflict resolution to be used in case of a data conflict. Can happen if the data is altered by a different device. PersistenceType.Latest will prefer the latest (newest) value. PersistenceType.Highest will prefer the highest value. PersistenceType.Lowest will prefer the lowest value. If you use PersistenceType.Lowest and don't set value , the uint will always be 0u.
valueThe starting value for this uint.

◆ CloudUInt() [2/2]

CloudOnce.CloudPrefs.CloudUInt.CloudUInt ( string  key,
PersistenceType  persistenceType,
uint  value,
uint  defaultValue 
)
inline

Used to store uints in the cloud.

Parameters
keyA unique identifier used to identify this particular value.
persistenceTypeThe method of conflict resolution to be used in case of a data conflict. Can happen if the data is altered by a different device. PersistenceType.Latest will prefer the latest (newest) value. PersistenceType.Highest will prefer the highest value. PersistenceType.Lowest will prefer the lowest value. If you use PersistenceType.Lowest and don't set value , the uint will always be 0u.
valueThe starting value for this uint.
defaultValueThe value the uint will be set to if it is ever reset.

The documentation for this class was generated from the following file: