aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_client.h
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-04-29 12:08:16 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-29 12:08:16 +0200
commitdc5bc6cac7b81ab27e0064bc25b5fd1d8d617340 (patch)
tree5b7be08157b8c377dfd10152c04d44687e9b1c81 /src/script/cpp_api/s_client.h
parentecf08255b0b6b9d15b86f614942ac8f53f41302a (diff)
downloadminetest-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.tar.gz
minetest-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.tar.bz2
minetest-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.zip
[CSM] Add event on_place_node API lua (#5548)
* [CSM] Add event on_place_node API lua
Diffstat (limited to 'src/script/cpp_api/s_client.h')
-rw-r--r--src/script/cpp_api/s_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/cpp_api/s_client.h b/src/script/cpp_api/s_client.h
index 94a597b2c..f252cf499 100644
--- a/src/script/cpp_api/s_client.h
+++ b/src/script/cpp_api/s_client.h
@@ -21,8 +21,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef S_CLIENT_H_
#define S_CLIENT_H_
+#include "util/pointedthing.h"
#include "cpp_api/s_base.h"
#include "mapnode.h"
+#include "itemdef.h"
#include "util/string.h"
#ifdef _CRT_MSVCP_CURRENT
@@ -51,6 +53,7 @@ public:
bool on_dignode(v3s16 p, MapNode node);
bool on_punchnode(v3s16 p, MapNode node);
+ bool on_placenode(const PointedThing &pointed, const ItemDefinition &item);
void setEnv(ClientEnvironment *env);
};