wiki.sine.space | sinespace

Difference between revisions of "Scripting/SPersistence"

From wiki.sine.space
Jump to: navigation, search
Line 1: Line 1:
The SPersistence class allows you to store persistent data to the region.
+
The SPersistence class allows you to store persistent data to the avatar.
  
 
=Members=
 
=Members=

Revision as of 16:01, 11 September 2017

The SPersistence class allows you to store persistent data to the avatar.

Members

Get/Set Values

SetValue

void SetValue (string key, string value);

No documentation

Space.Persistence.SetValue("MyValue", "Hello World");


GetValue

string GetValue (string key);

Retrieve the value assigned to 'key'.

Space.Log(Space.Persistence.GetValue("MyValue"));


Miscellaneous

UpdateValue

void UpdateValue (Action onComplete);

Call the onComplete function upon the server saving a value.

No example provided yet