mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add ServerEnvironment::setNode()/removeNode() to allow setting nodes from the C++ side with proper script-defined initialization/destruction
This commit is contained in:
parent
69bd803a32
commit
2c472a66d1
3 changed files with 45 additions and 27 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue