Scripting/SPersistence

From sine.space Wiki
Jump to: navigation, search

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