aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_entity.h
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:44:42 +0100
committerGitHub <noreply@github.com>2020-11-04 16:44:42 +0100
commit5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch)
treec980d614fec4a5495798be3e79e033229062c3cd /src/script/cpp_api/s_entity.h
parent28f6a79706b088c37268a59d90878220dc4ef9c7 (diff)
parent3af10766fd2b58b068e970266724d7eb10e9316b (diff)
downloaddragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/script/cpp_api/s_entity.h')
-rw-r--r--src/script/cpp_api/s_entity.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/script/cpp_api/s_entity.h b/src/script/cpp_api/s_entity.h
index b5f7a6586..93960ed03 100644
--- a/src/script/cpp_api/s_entity.h
+++ b/src/script/cpp_api/s_entity.h
@@ -26,28 +26,26 @@ struct ObjectProperties;
struct ToolCapabilities;
struct collisionMoveResult;
-class ScriptApiEntity
- : virtual public ScriptApiBase
+class ScriptApiEntity : virtual public ScriptApiBase
{
public:
bool luaentity_Add(u16 id, const char *name);
- void luaentity_Activate(u16 id,
- const std::string &staticdata, u32 dtime_s);
+ void luaentity_Activate(u16 id, const std::string &staticdata, u32 dtime_s);
void luaentity_Remove(u16 id);
std::string luaentity_GetStaticdata(u16 id);
- void luaentity_GetProperties(u16 id,
- ServerActiveObject *self, ObjectProperties *prop);
- void luaentity_Step(u16 id, float dtime,
- const collisionMoveResult *moveresult);
- bool luaentity_Punch(u16 id,
- ServerActiveObject *puncher, float time_from_last_punch,
- const ToolCapabilities *toolcap, v3f dir, s16 damage);
+ void luaentity_GetProperties(
+ u16 id, ServerActiveObject *self, ObjectProperties *prop);
+ void luaentity_Step(u16 id, float dtime, const collisionMoveResult *moveresult);
+ bool luaentity_Punch(u16 id, ServerActiveObject *puncher,
+ float time_from_last_punch, const ToolCapabilities *toolcap,
+ v3f dir, s16 damage);
bool luaentity_on_death(u16 id, ServerActiveObject *killer);
void luaentity_Rightclick(u16 id, ServerActiveObject *clicker);
void luaentity_on_attach_child(u16 id, ServerActiveObject *child);
void luaentity_on_detach_child(u16 id, ServerActiveObject *child);
void luaentity_on_detach(u16 id, ServerActiveObject *parent);
+
private:
- bool luaentity_run_simple_callback(u16 id, ServerActiveObject *sao,
- const char *field);
+ bool luaentity_run_simple_callback(
+ u16 id, ServerActiveObject *sao, const char *field);
};