mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Bulk LBMs (#14954)
This commit is contained in:
parent
7ae51382c8
commit
811adf5d42
9 changed files with 126 additions and 49 deletions
|
@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <vector>
|
||||
|
||||
class ServerEnvironment;
|
||||
class MapBlock;
|
||||
struct ScriptCallbackState;
|
||||
|
||||
class ScriptApiEnv : virtual public ScriptApiBase
|
||||
|
@ -61,7 +62,8 @@ public:
|
|||
void triggerABM(int id, v3s16 p, MapNode n,
|
||||
u32 active_object_count, u32 active_object_count_wider);
|
||||
|
||||
void triggerLBM(int id, v3s16 p, MapNode n, float dtime_s);
|
||||
void triggerLBM(int id, MapBlock *block,
|
||||
const std::unordered_set<v3s16> &positions, float dtime_s);
|
||||
|
||||
private:
|
||||
void readABMs();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue