wiki.sine.space | sinespace

Difference between revisions of "Scripting/Server/SDatabase"

From wiki.sine.space
Jump to: navigation, search
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/server-scripting/storage/sdatabase")
 
Line 1: Line 1:
 
+
This page has moved to: https://docs.sine.space/v/scripting/server-scripting/storage/sdatabase
=Public Member Functions=
+
 
+
{{ScriptFunction|void|GetRegionValue|(string key, Closure onResult);|Get a value stored in the region database using the first string parameter as a key and the second parameter as a function that will be called when the operation is complete. |5=<pre>Space.Database.GetRegionValue("testKey",OnCompleteFunction)</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|void|SetRegionValue|(string key, string value, Closure onSave);|Store a "value" in the region database using the "key"  and bind a function that will be called when the operation is complete.|5=<pre>Space.Database.SetRegionValue("testKey", "testValue",OnCompleteFunction)</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|void|GetPlayerValue|(int player, string key, Closure onResult);|Get a value stored in a player's database with player ID "player" and "key". The final parameter is a function that will be called when the operation is complete. |5=<pre>Space.Database.GetPlayerValue(aPlayerID,"testKey",OnCompleteFunction)</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|void|SetPlayerValue|(int player, string key, string value, Closure onSave);|Store a "value" in a player's database player ID "player" and "key". The final parameter is a function that will be called when the operation is complete.|5=<pre>Space.Database.SetPlayerValue(aPlayerID,"testKey", "testValue",OnCompleteFunction)</pre>|6=<pre></pre>}}
+
 
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 08:14, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/server-scripting/storage/sdatabase