Function that loads data from scope
Function that returns object representing created scope. No primitives are allowed as return value
Creates saves scope, a universal data storage container. This storage container should be used whenever you need to save some data between world sessions. If you want to store primitives, use an object to wrap them
Example:
var thirst = 20;
Saver.addSavesScope("thirst",
function read(scope){
thirst = scope? scope.thirst: 20;
},
function save(){
return {"value": thirst};
}
);
saves scope name
function used to load saved data
function used to save data
Registers object as scope saver
saves scope name
object that implements Saver.ScopeSaver interface and can be loaded and saved via its functions calls
Generated using TypeDoc
Module used to save data between world sessions