aboutsummaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2013-01-02 23:17:52 +0200
committerPerttu Ahola <celeron55@gmail.com>2013-01-02 23:18:14 +0200
commit2c472a66d1d605eefb167f51529c287f868ffa9b (patch)
tree8096b69ac4810fa083a7a823457af01995cd1418 /src/environment.h
parent69bd803a3221bf02672431390e672b0510695254 (diff)
downloadminetest-2c472a66d1d605eefb167f51529c287f868ffa9b.tar.gz
minetest-2c472a66d1d605eefb167f51529c287f868ffa9b.tar.bz2
minetest-2c472a66d1d605eefb167f51529c287f868ffa9b.zip
Add ServerEnvironment::setNode()/removeNode() to allow setting nodes from the C++ side with proper script-defined initialization/destruction
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h
index 0cc53f9a6..d17edeacd 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -283,6 +283,10 @@ public:
Other stuff
-------------------------------------------
*/
+
+ // Script-aware node setters
+ bool setNode(v3s16 p, const MapNode &n);
+ bool removeNode(v3s16 p);
// Find all active objects inside a radius around a point
std::set<u16> getObjectsInsideRadius(v3f pos, float radius);