Mike (CNDG) (Talk | contribs) (Created page with "The SPersistence class allows you to store persistent data to the region. =Members= ==Get/Set Values== {{ScriptFunction|void|SetValue|(string key, string value);|Set a value...") |
Mike (CNDG) (Talk | contribs) |
||
Line 4: | Line 4: | ||
==Get/Set Values== | ==Get/Set Values== | ||
− | {{ScriptFunction|void|SetValue|(string key, string value);|Set a value as 'key'='value'.}} | + | {{ScriptFunction|void|SetValue|(string key, string value);|Set a value as 'key'='value'.|5=Space.Persistence.SetValue("MyValue", "Hello World");}} |
− | {{ScriptFunction|string|GetValue|(string key);|Retrieve the value assigned to 'key'.}} | + | {{ScriptFunction|string|GetValue|(string key);|Retrieve the value assigned to 'key'.|5=Space.Log(Space.Persistence.GetValue("MyValue"));}} |
==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 value being stored.}} |
The SPersistence class allows you to store persistent data to the region.
No documentation
Retrieve the value assigned to 'key'.
Call the onComplete function upon the value being stored.