mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Bulk LBMs (#14954)
This commit is contained in:
parent
7ae51382c8
commit
811adf5d42
9 changed files with 126 additions and 49 deletions
|
@ -96,8 +96,13 @@ struct LoadingBlockModifierDef
|
|||
|
||||
virtual ~LoadingBlockModifierDef() = default;
|
||||
|
||||
virtual void trigger(ServerEnvironment *env, v3s16 p,
|
||||
MapNode n, float dtime_s) {};
|
||||
/// @brief Called to invoke LBM
|
||||
/// @param env environment
|
||||
/// @param block the block in question
|
||||
/// @param positions set of node positions (block-relative!)
|
||||
/// @param dtime_s game time since last deactivation
|
||||
virtual void trigger(ServerEnvironment *env, MapBlock *block,
|
||||
const std::unordered_set<v3s16> &positions, float dtime_s) {};
|
||||
};
|
||||
|
||||
class LBMContentMapping
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue