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

#include <map.h>

+ Collaboration diagram for MapEditEvent:

Public Member Functions

 MapEditEvent ()=default
 
void setPositionModified (v3s16 pos)
 
void setModifiedBlocks (const std::map< v3s16, MapBlock * > &blocks)
 
VoxelArea getArea () const
 

Public Attributes

MapEditEventType type = MEET_OTHER
 
v3s16 p
 
MapNode n = CONTENT_AIR
 
std::vector< 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:

◆ setModifiedBlocks()

void MapEditEvent::setModifiedBlocks ( const std::map< v3s16, MapBlock * > & blocks)
inline

References modified_blocks.

◆ setPositionModified()

void MapEditEvent::setPositionModified ( v3s16 pos)
inline

References getNodeBlockPos(), modified_blocks, and p.

+ Here is the call graph for this function:

Member Data Documentation

◆ is_private_change

bool MapEditEvent::is_private_change = false

◆ modified_blocks

std::vector<v3s16> MapEditEvent::modified_blocks

◆ n

MapNode MapEditEvent::n = CONTENT_AIR

◆ p

v3s16 MapEditEvent::p

Referenced by getArea(), and setPositionModified().

◆ type


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