wiki.sine.space | sinespace

Difference between revisions of "Scripting/SPersistence"

From wiki.sine.space
Jump to: navigation, search
Line 8: Line 8:
  
 
==Miscellaneous==
 
==Miscellaneous==
{{ScriptFunction|void|UpdateValue|(Action onComplete);|Call the onComplete function upon the value being stored.}}
+
{{ScriptFunction|void|UpdateValue|(Action onComplete);|Call the onComplete function upon the server saving a value.}}

Revision as of 23:53, 20 April 2017

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