#include <l_env.h>
|
| LuaABM (lua_State *L, int id, const std::vector< std::string > &trigger_contents, const std::vector< std::string > &required_neighbors, float trigger_interval, u32 trigger_chance, bool simple_catch_up) |
|
virtual const std::vector< std::string > & | getTriggerContents () const |
|
virtual const std::vector< std::string > & | getRequiredNeighbors () const |
|
virtual float | getTriggerInterval () |
|
virtual u32 | getTriggerChance () |
|
virtual bool | getSimpleCatchUp () |
|
virtual void | trigger (ServerEnvironment *env, v3s16 p, MapNode n, u32 active_object_count, u32 active_object_count_wider) |
|
| ActiveBlockModifier ()=default |
|
virtual | ~ActiveBlockModifier ()=default |
|
virtual void | trigger (ServerEnvironment *env, v3s16 p, MapNode n) |
|
◆ LuaABM()
LuaABM::LuaABM |
( |
lua_State * |
L, |
|
|
int |
id, |
|
|
const std::vector< std::string > & |
trigger_contents, |
|
|
const std::vector< std::string > & |
required_neighbors, |
|
|
float |
trigger_interval, |
|
|
u32 |
trigger_chance, |
|
|
bool |
simple_catch_up |
|
) |
| |
|
inline |
◆ getRequiredNeighbors()
virtual const std::vector<std::string>& LuaABM::getRequiredNeighbors |
( |
| ) |
const |
|
inlinevirtual |
◆ getSimpleCatchUp()
virtual bool LuaABM::getSimpleCatchUp |
( |
| ) |
|
|
inlinevirtual |
◆ getTriggerChance()
virtual u32 LuaABM::getTriggerChance |
( |
| ) |
|
|
inlinevirtual |
◆ getTriggerContents()
virtual const std::vector<std::string>& LuaABM::getTriggerContents |
( |
| ) |
const |
|
inlinevirtual |
◆ getTriggerInterval()
virtual float LuaABM::getTriggerInterval |
( |
| ) |
|
|
inlinevirtual |
◆ trigger()
Reimplemented from ActiveBlockModifier.
References FATAL_ERROR, ServerEnvironment::getGameDef(), ServerEnvironment::getScriptIface(), ScriptApiBase::getStack(), m_id, IGameDef::ndef(), p(), PUSH_ERROR_HANDLER, push_v3s16(), pushnode(), ScriptApiBase::realityCheck(), sanity_check, and ScriptApiBase::scriptError().
◆ m_id
◆ m_required_neighbors
std::vector<std::string> LuaABM::m_required_neighbors |
|
private |
◆ m_simple_catch_up
bool LuaABM::m_simple_catch_up |
|
private |
◆ m_trigger_chance
u32 LuaABM::m_trigger_chance |
|
private |
◆ m_trigger_contents
std::vector<std::string> LuaABM::m_trigger_contents |
|
private |
◆ m_trigger_interval
float LuaABM::m_trigger_interval |
|
private |
The documentation for this class was generated from the following files: