From c2b5da735ea0c961d4f6521df9d96142c7143eee Mon Sep 17 00:00:00 2001 From: kwolekr Date: Fri, 30 Oct 2015 02:48:37 -0400 Subject: Add callback parameter for core.emerge_area() --- builtin/game/constants.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 builtin/game/constants.lua (limited to 'builtin/game/constants.lua') 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 -- cgit v1.2.3