aboutsummaryrefslogtreecommitdiff
path: root/src/scriptapi.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-01 17:24:54 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-06-03 22:31:00 +0300
commitfe8c5546f09a6dbe410cde0a7cd99a3f4031ce8e (patch)
treef163ec0fdb3a597943defd60a37be98f43f30ea1 /src/scriptapi.h
parentc4315a7afafcc9adff945b5e63800340f6c2c008 (diff)
downloadhax-minetest-server-fe8c5546f09a6dbe410cde0a7cd99a3f4031ce8e.tar.gz
hax-minetest-server-fe8c5546f09a6dbe410cde0a7cd99a3f4031ce8e.zip
Add node on_construct, on_destruct callbacks and update lua_api.txt
Diffstat (limited to '')
-rw-r--r--src/scriptapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scriptapi.h b/src/scriptapi.h
index fe8b26e04..cd6a5614c 100644
--- a/src/scriptapi.h
+++ b/src/scriptapi.h
@@ -81,6 +81,8 @@ bool scriptapi_node_on_punch(lua_State *L, v3s16 p, MapNode node,
ServerActiveObject *puncher);
bool scriptapi_node_on_dig(lua_State *L, v3s16 p, MapNode node,
ServerActiveObject *digger);
+void scriptapi_node_on_construct(lua_State *L, v3s16 p, MapNode node);
+void scriptapi_node_on_destruct(lua_State *L, v3s16 p, MapNode node);
/* luaentity */
// Returns true if succesfully added into Lua; false otherwise.