]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/cpp_api/s_entity.h
Fix a warning reported by clang
[dragonfireclient.git] / src / script / cpp_api / s_entity.h
index b95b6b4b4105c5a197ef9a183a077173cf56b50f..173e24c3082e53886c54d847bb3e372371ae98ae 100644 (file)
@@ -17,14 +17,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef S_ENTITY_H_
-#define S_ENTITY_H_
+#pragma once
 
 #include "cpp_api/s_base.h"
 #include "irr_v3d.h"
 
-class ObjectProperties;
-class ToolCapabilities;
+struct ObjectProperties;
+struct ToolCapabilities;
 
 class ScriptApiEntity
                : virtual public ScriptApiBase
@@ -38,13 +37,10 @@ class ScriptApiEntity
        void luaentity_GetProperties(u16 id,
                        ObjectProperties *prop);
        void luaentity_Step(u16 id, float dtime);
-       void luaentity_Punch(u16 id,
+       bool luaentity_Punch(u16 id,
                        ServerActiveObject *puncher, float time_from_last_punch,
-                       const ToolCapabilities *toolcap, v3f dir);
+                       const ToolCapabilities *toolcap, v3f dir, s16 damage);
+       bool luaentity_on_death(u16 id, ServerActiveObject *killer);
        void luaentity_Rightclick(u16 id,
                        ServerActiveObject *clicker);
 };
-
-
-
-#endif /* S_ENTITY_H_ */