Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
LuaLBM Class Reference
+ 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
 

Constructor & Destructor Documentation

◆ LuaLBM()

LuaLBM::LuaLBM ( int id,
const std::vector< std::string > & trigger_contents,
const std::string & name,
bool run_at_every_load )
inline

Member Function Documentation

◆ trigger()

virtual void LuaLBM::trigger ( ServerEnvironment * env,
MapBlock * block,
const std::unordered_set< v3s16 > & positions,
float dtime_s )
inlinevirtual

Called to invoke LBM.

Parameters
envenvironment
blockthe block in question
positionsset of node positions (block-relative!)
dtime_sgame time since last deactivation

Reimplemented from LoadingBlockModifierDef.

References ServerEnvironment::getScriptIface(), m_id, and ScriptApiEnv::triggerLBM().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_id

int LuaLBM::m_id
private

Referenced by trigger().


The documentation for this class was generated from the following file: