wiki.sine.space | sinespace

Scripting/Server/SDatabase

From wiki.sine.space
Revision as of 18:45, 24 February 2022 by Voidtech (Talk | contribs) (Created page with " =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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Public Member Functions

GetRegionValue(string key, Closure onResult);

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.

No documentation

Space.Database.GetRegionValue("testKey",OnCompleteFunction)


SetRegionValue(string key, string value, Closure onSave);

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.

No documentation

Space.Database.SetRegionValue("testKey", "testValue",OnCompleteFunction)


GetPlayerValue(int player, string key, Closure onResult);

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.

No documentation

Space.Database.GetPlayerValue(aPlayerID,"testKey",OnCompleteFunction)


SetPlayerValue(int player, string key, string value, Closure onSave);

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.

No documentation

Space.Database.SetPlayerValue(aPlayerID,"testKey", "testValue",OnCompleteFunction)