diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-10-30 19:27:48 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2016-03-07 16:33:20 -0500 |
commit | 821551a2669123ac9a476894d65b5efe10026040 (patch) | |
tree | 33fcfe3b0c6182a2084fa9957d4eb602483f4f44 /doc/lua_api.txt | |
parent | c4b7afed7ed12f8d5894c1a5dd15ea376af06da6 (diff) | |
download | minetest-821551a2669123ac9a476894d65b5efe10026040.tar.gz minetest-821551a2669123ac9a476894d65b5efe10026040.tar.bz2 minetest-821551a2669123ac9a476894d65b5efe10026040.zip |
Implement AreaStore serialization
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 03b2d5609..50fa25273 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2737,6 +2737,10 @@ If you chose the parameter-less constructor, a fast implementation will be autom block_radius = number, -- the radius (in nodes) of the areas the cache generates prefiltered lists for, minimum 16, default 64 limit = number, -- the cache's size, minimum 20, default 1000 } +* `to_string()`: Experimental. Returns area store serialized as a (binary) string. +* `to_file(filename)`: Experimental. Like `to_string()`, but writes the data to a file. +* `from_string(str)`: Experimental. Deserializes string and loads it into the AreaStore. Returns success and, optionally, an error message. +* `from_file(filename)`: Experimental. Like `from_string()`, but reads the data from a file. ### `ItemStack` An `ItemStack` is a stack of items. |