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

#include <nodedef.h>

+ Collaboration diagram for NodeBox:

Public Member Functions

 NodeBox ()
 
 ~NodeBox ()=default
 
NodeBoxConnectedgetConnected ()
 
const NodeBoxConnectedgetConnected () const
 
void reset ()
 
void serialize (std::ostream &os, u16 protocol_version) const
 
void deSerialize (std::istream &is)
 

Public Attributes

enum NodeBoxType type
 
std::vector< aabb3ffixed
 
aabb3f wall_top
 
aabb3f wall_bottom
 
aabb3f wall_side
 
std::shared_ptr< NodeBoxConnectedconnected
 

Constructor & Destructor Documentation

◆ NodeBox()

NodeBox::NodeBox ( )
inline

References reset().

+ Here is the call graph for this function:

◆ ~NodeBox()

NodeBox::~NodeBox ( )
default

Member Function Documentation

◆ deSerialize()

void NodeBox::deSerialize ( std::istream & is)

References fixed, getConnected(), NODEBOX_CONNECTED, NODEBOX_FIXED, NODEBOX_LEVELED, NODEBOX_REGULAR, NODEBOX_WALLMOUNTED, READBOXES, readU16(), readU8(), readV3F32(), reset(), type, wall_bottom, wall_side, and wall_top.

Referenced by ContentFeatures::deSerialize().

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

◆ getConnected() [1/2]

NodeBoxConnected & NodeBox::getConnected ( )
inline

References connected.

Referenced by deSerialize(), getNodeBoxUnion(), push_nodebox(), read_nodebox(), serialize(), and transformNodeBox().

+ Here is the caller graph for this function:

◆ getConnected() [2/2]

const NodeBoxConnected & NodeBox::getConnected ( ) const
inline

References connected.

◆ reset()

void NodeBox::reset ( )

References BS, connected, fixed, NODEBOX_REGULAR, type, wall_bottom, wall_side, and wall_top.

Referenced by NodeBox(), deSerialize(), and ContentFeatures::reset().

+ Here is the caller graph for this function:

◆ serialize()

void NodeBox::serialize ( std::ostream & os,
u16 protocol_version ) const

References fixed, getConnected(), NODEBOX_CONNECTED, NODEBOX_FIXED, NODEBOX_LEVELED, NODEBOX_WALLMOUNTED, type, wall_bottom, wall_side, wall_top, WRITEBOX, writeU16(), writeU8(), and writeV3F32().

Referenced by ContentFeatures::serialize().

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

Member Data Documentation

◆ connected

std::shared_ptr<NodeBoxConnected> NodeBox::connected

Referenced by getConnected(), getConnected(), and reset().

◆ fixed

◆ type

◆ wall_bottom

◆ wall_side

◆ wall_top


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