mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Bulk LBMs (#14954)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user