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:57:47 +0100
committerGitHub <noreply@github.com>2020-11-04 16:57:47 +0100
commit3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch)
treec070350db219f2c4241d22bc31949685c7b42fe9 /src/script/cpp_api/s_entity.h
parent5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff)
parent6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff)
downloaddragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.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, 13 insertions, 11 deletions
diff --git a/src/script/cpp_api/s_entity.h b/src/script/cpp_api/s_entity.h
index 93960ed03..b5f7a6586 100644
--- a/src/script/cpp_api/s_entity.h
+++ b/src/script/cpp_api/s_entity.h
@@ -26,26 +26,28 @@ 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);
};