Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
LoadingBlockModifierDef Struct Reference

#include <serverenvironment.h>

+ Inheritance diagram for LoadingBlockModifierDef:
+ Collaboration diagram for LoadingBlockModifierDef:

Public Member Functions

virtual ~LoadingBlockModifierDef ()=default
 
virtual void trigger (ServerEnvironment *env, MapBlock *block, const std::unordered_set< v3s16 > &positions, float dtime_s)
 Called to invoke LBM.
 

Public Attributes

std::vector< std::string > trigger_contents
 
std::string name
 
bool run_at_every_load = false
 

Constructor & Destructor Documentation

◆ ~LoadingBlockModifierDef()

virtual LoadingBlockModifierDef::~LoadingBlockModifierDef ( )
virtualdefault

Member Function Documentation

◆ trigger()

virtual void LoadingBlockModifierDef::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 in LuaLBM.

Member Data Documentation

◆ name

std::string LoadingBlockModifierDef::name

◆ run_at_every_load

bool LoadingBlockModifierDef::run_at_every_load = false

◆ trigger_contents

std::vector<std::string> LoadingBlockModifierDef::trigger_contents

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