Свойство | Тип | Описание | |
---|---|---|---|
DATA | object>.IDictionary | ||
FILE_PATH | string |
Метод | Описание | |
---|---|---|
DeleteAll ( ) : void |
Clears all data.
|
|
DeleteKey ( string key ) : void |
Deletes the key.
|
|
GetFloat ( string key ) : float |
Gets the float value for a key.
|
|
GetInt ( string key ) : int |
Gets the int value for a key.
|
|
GetSerializedData ( ) : IDictionary |
Gets the serialized data.
|
|
GetString ( string key ) : string |
Gets the string value for a key.
|
|
HasKey ( string key ) : bool |
Checks if the key exists.
|
|
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.
|
|
JSONLocalStore ( ) : System |
Initializes a new instance of the JSONLocalStorage class.
|
|
Save ( ) : void |
Saves currently modified data.
|
|
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.
|
Метод | Описание | |
---|---|---|
Deserialize ( string data ) : void |
Deserialize the specified data.
|
|
Get ( string key ) : object |
Get the specified key's value.
|
|
ReadDataFromFile ( ) : void |
Reads the data from file.
|
|
Serialize ( object>.IDictionary |
Serialize the specified data.
|
|
Set ( string key, object value ) : void |
Set the specified key and value.
|
|
WriteDataToFile ( ) : void |
Writes the data to file.
|
protected Deserialize ( string data ) : void | ||
data | string | Data. |
Результат | void |
public GetSerializedData ( ) : IDictionary |
||
Результат | IDictionary |
public GetString ( string key ) : string | ||
key | string | Key. |
Результат | string |
protected Serialize ( object>.IDictionary |
||
data | object>.IDictionary | Data. |
Результат | string |
protected Set ( string key, object value ) : void | ||
key | string | Key. |
value | object | Value. |
Результат | void |
public SetFloat ( string key, float value ) : void | ||
key | string | Key. |
value | float | Value. |
Результат | void |
public SetInt ( string key, int value ) : void | ||
key | string | Key. |
value | int | Value. |
Результат | void |
public SetString ( string key, string value ) : void | ||
key | string | Key. |
value | string | Value. |
Результат | void |
protected static IDictionary |
||
Результат | object>.IDictionary |