diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:57:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:57:47 +0100 |
commit | 3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch) | |
tree | c070350db219f2c4241d22bc31949685c7b42fe9 /src/script/cpp_api/s_node.h | |
parent | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff) | |
parent | 6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff) | |
download | dragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/script/cpp_api/s_node.h')
-rw-r--r-- | src/script/cpp_api/s_node.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/script/cpp_api/s_node.h b/src/script/cpp_api/s_node.h index 8f4e41479..81b44f0f0 100644 --- a/src/script/cpp_api/s_node.h +++ b/src/script/cpp_api/s_node.h @@ -27,23 +27,27 @@ with this program; if not, write to the Free Software Foundation, Inc., struct MapNode; class ServerActiveObject; -class ScriptApiNode : virtual public ScriptApiBase, public ScriptApiNodemeta +class ScriptApiNode + : virtual public ScriptApiBase, + public ScriptApiNodemeta { public: ScriptApiNode() = default; virtual ~ScriptApiNode() = default; - bool node_on_punch(v3s16 p, MapNode node, ServerActiveObject *puncher, - const PointedThing &pointed); - bool node_on_dig(v3s16 p, MapNode node, ServerActiveObject *digger); + bool node_on_punch(v3s16 p, MapNode node, + ServerActiveObject *puncher, const PointedThing &pointed); + bool node_on_dig(v3s16 p, MapNode node, + ServerActiveObject *digger); void node_on_construct(v3s16 p, MapNode node); void node_on_destruct(v3s16 p, MapNode node); bool node_on_flood(v3s16 p, MapNode node, MapNode newnode); void node_after_destruct(v3s16 p, MapNode node); bool node_on_timer(v3s16 p, MapNode node, f32 dtime); - void node_on_receive_fields(v3s16 p, const std::string &formname, - const StringMap &fields, ServerActiveObject *sender); - + void node_on_receive_fields(v3s16 p, + const std::string &formname, + const StringMap &fields, + ServerActiveObject *sender); public: static struct EnumString es_DrawType[]; static struct EnumString es_ContentParamType[]; |