Inheritance diagram for LuaLBM:
Collaboration diagram for LuaLBM:Public Member Functions | |
| LuaLBM (int id, const std::vector< std::string > &trigger_contents, const std::string &name, bool run_at_every_load) | |
| virtual void | trigger (ServerEnvironment *env, MapBlock *block, const std::unordered_set< v3s16 > &positions, float dtime_s) |
| Called to invoke LBM. | |
Public Member Functions inherited from LoadingBlockModifierDef | |
| virtual | ~LoadingBlockModifierDef ()=default |
Private Attributes | |
| int | m_id |
Additional Inherited Members | |
Public Attributes inherited from LoadingBlockModifierDef | |
| std::vector< std::string > | trigger_contents |
| std::string | name |
| bool | run_at_every_load = false |
|
inline |
|
inlinevirtual |
Called to invoke LBM.
| env | environment |
| block | the block in question |
| positions | set of node positions (block-relative!) |
| dtime_s | game time since last deactivation |
Reimplemented from LoadingBlockModifierDef.
References ServerEnvironment::getScriptIface(), m_id, and ScriptApiEnv::triggerLBM().
Here is the call graph for this function:
|
private |
Referenced by trigger().