Property | Type | Description | |
---|---|---|---|
FILE_PATH | string | ||
_XML_STORE | XmlStore |
Method | Description | |
---|---|---|
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.
|
|
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.
|
|
XMLLocalStore ( ) : System |
Initializes a new instance of the XMLLocalStorage class.
|
Method | Description | |
---|---|---|
GetItemOrCreateDefault ( string key ) : XmlItem |
Gets the item or create default.
|
|
ReadDataFromFile ( ) : void |
Reads the data from file.
|
|
WriteDataToFile ( ) : void |
Writes the data to file.
|
protected GetItemOrCreateDefault ( string key ) : XmlItem | ||
key | string | Key. |
return | XmlItem |
public GetSerializedData ( ) : IDictionary |
||
return | IDictionary |
public SetFloat ( string key, float value ) : void | ||
key | string | Key. |
value | float | Value. |
return | void |
public SetInt ( string key, int value ) : void | ||
key | string | Key. |
value | int | Value. |
return | void |
public SetString ( string key, string value ) : void | ||
key | string | Key. |
value | string | Value. |
return | void |