summaryrefslogtreecommitdiff
path: root/builtin/game/constants.lua
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-10-30 02:48:37 -0400
committerkwolekr <kwolekr@minetest.net>2015-11-02 18:43:09 -0500
commitc2b5da735ea0c961d4f6521df9d96142c7143eee (patch)
tree667ffa9cbbf5a606979a942634b030528822762c /builtin/game/constants.lua
parent5c3546e459ede7fbdfc22b340ed6b2af5073ec5b (diff)
downloadminetest-c2b5da735ea0c961d4f6521df9d96142c7143eee.tar.gz
minetest-c2b5da735ea0c961d4f6521df9d96142c7143eee.tar.bz2
minetest-c2b5da735ea0c961d4f6521df9d96142c7143eee.zip
Add callback parameter for core.emerge_area()
Diffstat (limited to 'builtin/game/constants.lua')
-rw-r--r--builtin/game/constants.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/builtin/game/constants.lua b/builtin/game/constants.lua
new file mode 100644
index 000000000..ea3644cfb
--- /dev/null
+++ b/builtin/game/constants.lua
@@ -0,0 +1,12 @@
+-- Minetest: builtin/constants.lua
+
+--
+-- Constants values for use with the Lua API
+--
+
+-- Block emerge status constants (for use with core.emerge_area)
+core.EMERGE_CANCELLED = 0
+core.EMERGE_ERRORED = 1
+core.EMERGE_FROM_MEMORY = 2
+core.EMERGE_FROM_DISK = 3
+core.EMERGE_GENERATED = 4