diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-25 19:49:20 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:52 +0200 |
commit | 9e7ad1e2aa832ff93a623e7a1531cee1f1e79ef7 (patch) | |
tree | 92ebc9ff4a3750206f52b52858de1a4289d6f16d /src/scriptapi.h | |
parent | ae9f183cda7046028e6d74972922dc41cf6039bf (diff) | |
download | minetest-9e7ad1e2aa832ff93a623e7a1531cee1f1e79ef7.tar.gz minetest-9e7ad1e2aa832ff93a623e7a1531cee1f1e79ef7.tar.bz2 minetest-9e7ad1e2aa832ff93a623e7a1531cee1f1e79ef7.zip |
Add object reference to Lua on_place/dig/punchnode parameters
Diffstat (limited to 'src/scriptapi.h')
-rw-r--r-- | src/scriptapi.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/scriptapi.h b/src/scriptapi.h index 46bc8233b..33f090f74 100644 --- a/src/scriptapi.h +++ b/src/scriptapi.h @@ -41,11 +41,14 @@ void scriptapi_rm_object_reference(lua_State *L, ServerActiveObject *cobj); // 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); +void scriptapi_environment_on_placenode(lua_State *L, v3s16 p, MapNode newnode, + ServerActiveObject *placer); // After removing node -void scriptapi_environment_on_dignode(lua_State *L, v3s16 p, MapNode oldnode); +void scriptapi_environment_on_dignode(lua_State *L, v3s16 p, MapNode oldnode, + ServerActiveObject *digger); // When punching node -void scriptapi_environment_on_punchnode(lua_State *L, v3s16 p, MapNode node); +void scriptapi_environment_on_punchnode(lua_State *L, v3s16 p, MapNode node, + ServerActiveObject *puncher); /* luaentity */ // Returns true if succesfully added into Lua; false otherwise. |