From 2c472a66d1d605eefb167f51529c287f868ffa9b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 2 Jan 2013 23:17:52 +0200 Subject: Add ServerEnvironment::setNode()/removeNode() to allow setting nodes from the C++ side with proper script-defined initialization/destruction --- src/environment.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/environment.h') 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 getObjectsInsideRadius(v3f pos, float radius); -- cgit v1.2.3