diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-17 11:22:24 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:49 +0200 |
commit | cc03718d3c492a401bbc4b071d0ae1f0c808de95 (patch) | |
tree | d3b701f5ab5ca0b2d94a22a0c49eeeb0ba98fb51 /src/scriptapi.h | |
parent | d7cb6146c8ddbd3e1c03c9743e32d7d4e86ec78e (diff) | |
download | minetest-cc03718d3c492a401bbc4b071d0ae1f0c808de95.tar.gz minetest-cc03718d3c492a401bbc4b071d0ae1f0c808de95.tar.bz2 minetest-cc03718d3c492a401bbc4b071d0ae1f0c808de95.zip |
Node place/dig Lua callbacks
Diffstat (limited to 'src/scriptapi.h')
-rw-r--r-- | src/scriptapi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/scriptapi.h b/src/scriptapi.h index ecd3d7b81..e7ff84039 100644 --- a/src/scriptapi.h +++ b/src/scriptapi.h @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes.h" #include <string> +#include "mapnode.h" class Server; class ServerEnvironment; @@ -37,7 +38,12 @@ void scriptapi_add_object_reference(lua_State *L, ServerActiveObject *cobj); void scriptapi_rm_object_reference(lua_State *L, ServerActiveObject *cobj); /* environment */ +// On environment step void scriptapi_environment_step(lua_State *L, float dtime); +// After adding node +void scriptapi_environment_on_placenode(lua_State *L, v3s16 p, MapNode newnode); +// After removing node +void scriptapi_environment_on_dignode(lua_State *L, v3s16 p, MapNode oldnode); /* luaentity */ // Returns true if succesfully added into Lua; false otherwise. |