Minetest  5.4.0
MapEditEvent Struct Reference

#include <map.h>

+ Collaboration diagram for MapEditEvent:

Public Member Functions

 MapEditEvent ()=default
 
VoxelArea getArea () const
 

Public Attributes

MapEditEventType type = MEET_OTHER
 
v3s16 p
 
MapNode n = CONTENT_AIR
 
std::set< v3s16modified_blocks
 
bool is_private_change = false
 

Constructor & Destructor Documentation

◆ MapEditEvent()

MapEditEvent::MapEditEvent ( )
default

Member Function Documentation

◆ getArea()

VoxelArea MapEditEvent::getArea ( ) const
inline

References VoxelArea::addPoint(), MAP_BLOCKSIZE, MEET_ADDNODE, MEET_BLOCK_NODE_METADATA_CHANGED, MEET_OTHER, MEET_REMOVENODE, MEET_SWAPNODE, modified_blocks, p, and type.

Referenced by Server::onMapEditEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ is_private_change

bool MapEditEvent::is_private_change = false

◆ modified_blocks

std::set<v3s16> MapEditEvent::modified_blocks

Referenced by getArea().

◆ n

MapNode MapEditEvent::n = CONTENT_AIR

◆ p

v3s16 MapEditEvent::p

Referenced by getArea().

◆ type


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