Minetest  5.4.0
LuaLBM Class Reference

#include <l_env.h>

+ Inheritance diagram for LuaLBM:
+ Collaboration diagram for LuaLBM:

Public Member Functions

 LuaLBM (lua_State *L, int id, const std::set< std::string > &trigger_contents, const std::string &name, bool run_at_every_load)
 
virtual void trigger (ServerEnvironment *env, v3s16 p, MapNode n)
 
- Public Member Functions inherited from LoadingBlockModifierDef
virtual ~LoadingBlockModifierDef ()=default
 

Private Attributes

int m_id
 

Additional Inherited Members

- Public Attributes inherited from LoadingBlockModifierDef
std::set< std::string > trigger_contents
 
std::string name
 
bool run_at_every_load = false
 

Constructor & Destructor Documentation

◆ LuaLBM()

LuaLBM::LuaLBM ( lua_State *  L,
int  id,
const std::set< std::string > &  trigger_contents,
const std::string &  name,
bool  run_at_every_load 
)
inline

Member Function Documentation

◆ trigger()

void LuaLBM::trigger ( ServerEnvironment env,
v3s16  p,
MapNode  n 
)
virtual

Reimplemented from LoadingBlockModifierDef.

References FATAL_ERROR_IF, ServerEnvironment::getGameDef(), ServerEnvironment::getScriptIface(), ScriptApiBase::getStack(), m_id, IGameDef::ndef(), p(), PUSH_ERROR_HANDLER, push_v3s16(), pushnode(), ScriptApiBase::realityCheck(), sanity_check, and ScriptApiBase::scriptError().

+ 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 files: