프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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.
|
public GetSerializedData ( ) : IDictionary |
||
리턴 | IDictionary |
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 |