From e9cdb938fe44282e09fb88628a6e86e5e7279c69 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 4 Mar 2012 21:08:03 +0200 Subject: Entity damage system WIP; Remove C++ mobs --- src/scriptapi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/scriptapi.h') diff --git a/src/scriptapi.h b/src/scriptapi.h index df8ae344e..aa2d9d4c7 100644 --- a/src/scriptapi.h +++ b/src/scriptapi.h @@ -33,6 +33,7 @@ struct LuaEntityProperties; struct ItemStack; struct PointedThing; //class IGameDef; +struct ToolCapabilities; void scriptapi_export(lua_State *L, Server *server); bool scriptapi_loadmod(lua_State *L, const std::string &scriptpath, @@ -82,7 +83,8 @@ void scriptapi_luaentity_get_properties(lua_State *L, u16 id, LuaEntityProperties *prop); void scriptapi_luaentity_step(lua_State *L, u16 id, float dtime); void scriptapi_luaentity_punch(lua_State *L, u16 id, - ServerActiveObject *puncher, float time_from_last_punch); + ServerActiveObject *puncher, float time_from_last_punch, + const ToolCapabilities *toolcap, v3f dir); void scriptapi_luaentity_rightclick(lua_State *L, u16 id, ServerActiveObject *clicker); -- cgit v1.2.3