Method | Description | |
---|---|---|
Decrement ( string key ) : void |
Decrement the the integer value of a specified key.
|
|
DeleteAll ( ) : void |
Clears all data.
|
|
DeleteKey ( string key ) : void |
Deletes the key.
|
|
DeserializeData ( object>.IDictionary |
Deserializes the data.
|
|
GetBool ( string key ) : bool |
Gets the boolean value for a key.
|
|
GetBoolOrDefault ( string key ) : bool |
Gets the bool value if key is present else returns default bool value.
|
|
GetFloat ( string key ) : float |
Gets the float value for a key.
|
|
GetFloatOrDefault ( string key ) : float |
Gets the float if key is present else returns default float value.
|
|
GetInt ( string key ) : int |
Gets the int value for a key.
|
|
GetIntOrDefault ( string key ) : int |
Gets the int value if key is present else returns default int value.
|
|
GetSerializedData ( ) : object>.IDictionary |
Gets the serialized data.
|
|
GetSerializedDataJSON ( ) : string |
Gets the serialized data JSON.
|
|
GetSerializedDataJSON ( object>.IDictionary |
Gets the serialized data in JSON format.
|
|
GetString ( string key ) : string |
Gets the string value for a key.
|
|
GetStringArray ( string key ) : string[] |
Gets the string array for a key.
|
|
GetStringOrDefault ( string key ) : string |
Gets the string value if key is present else returns default string value.
|
|
HasKey ( string key ) : bool |
Checks if the key exists.
|
|
Increment ( string key ) : void |
Increments the integer value of a specified key.
|
|
Initialize ( ) : void |
Initialize this instance. This is where the provider should write its initialization code. This could be called from the constructor as well. While creating an instance the LocalStorage class does not explicity call this Initialize method, but expects the provider to be initialized after calling the constructor. This method is only provided incase the game wants to re-initialize the provider for any reason.
|
|
Save ( ) : void |
Saves currently modified data.
|
|
SetBool ( string key, bool value ) : void |
Sets the bool value for a key.
|
|
SetFloat ( string key, float value ) : void |
Sets the float value for a key.
|
|
SetInt ( string key, int value ) : void |
Sets the int value for a key.
|
|
SetString ( string key, string value ) : void |
Sets the string value for a key.
|
|
SetStringArray ( string key, string values ) : void |
Sets the string array value for a key.
|
public Decrement ( string key ) : void | ||
key | string | /// Key. /// |
return | void |
public abstract DeleteKey ( string key ) : void | ||
key | string | /// Key. /// |
return | void |
public DeserializeData ( object>.IDictionary |
||
jsonObj | object>.IDictionary |
/// If set to |
return | bool |
public GetBool ( string key ) : bool | ||
key | string |
/// If set to |
return | bool |
public GetBoolOrDefault ( string key ) : bool | ||
key | string |
/// If set to |
return | bool |
public abstract GetFloat ( string key ) : float | ||
key | string | /// Key. /// |
return | float |
public GetFloatOrDefault ( string key ) : float | ||
key | string | /// Key. /// |
return | float |
public abstract GetInt ( string key ) : int | ||
key | string | /// Key. /// |
return | int |
public GetIntOrDefault ( string key ) : int | ||
key | string | /// Key. /// |
return | int |
public abstract GetSerializedData ( ) : object>.IDictionary |
||
return | object>.IDictionary |
public GetSerializedDataJSON ( object>.IDictionary |
||
dict | object>.IDictionary | |
return | string |
public abstract GetString ( string key ) : string | ||
key | string | /// Key. /// |
return | string |
public GetStringArray ( string key ) : string[] | ||
key | string | /// Key. /// |
return | string[] |
public GetStringOrDefault ( string key ) : string | ||
key | string | /// Key. /// |
return | string |
public abstract HasKey ( string key ) : bool | ||
key | string |
/// If set to |
return | bool |
public Increment ( string key ) : void | ||
key | string | /// Key. /// |
return | void |
public SetBool ( string key, bool value ) : void | ||
key | string | /// Key. /// |
value | bool | /// Value. /// |
return | void |
public abstract SetFloat ( string key, float value ) : void | ||
key | string | /// Key. /// |
value | float | /// Value. /// |
return | void |
public abstract SetInt ( string key, int value ) : void | ||
key | string | /// Key. /// |
value | int | /// Value. /// |
return | void |
public abstract SetString ( string key, string value ) : void | ||
key | string | /// Key. /// |
value | string | /// Value. /// |
return | void |
public SetStringArray ( string key, string values ) : void | ||
key | string | /// Key. /// |
values | string | /// Values. /// |
return | void |