wiki.sine.space | sinespace

Scripting/SPersistence

From wiki.sine.space
Revision as of 23:53, 20 April 2017 by Mike (CNDG) (Talk | contribs)

Jump to: navigation, search

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

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