1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add EnvRef:get_objects_inside_radius(pos, radius)

This commit is contained in:
Perttu Ahola 2011-12-28 18:18:08 +02:00
parent 7937813c98
commit 1c15f53318
5 changed files with 70 additions and 9 deletions

View file

@ -261,18 +261,24 @@ public:
void activateBlock(MapBlock *block, u32 additional_dtime=0);
/*
ActiveBlockModifiers (TODO)
ActiveBlockModifiers
-------------------------------------------
NOTE: Not used currently (TODO: Use or remove)
*/
void addActiveBlockModifier(ActiveBlockModifier *abm);
/* Other stuff */
/*
Other stuff
-------------------------------------------
*/
// Find all active objects inside a radius around a point
std::set<u16> getObjectsInsideRadius(v3f pos, float radius);
// Clear all objects, loading and going through every MapBlock
void clearAllObjects();
// This makes stuff happen
void step(f32 dtime);
private: