#include <nodedef.h>
Public Member Functions | |
NodeBox () | |
~NodeBox ()=default | |
NodeBoxConnected & | getConnected () |
const NodeBoxConnected & | getConnected () const |
void | reset () |
void | serialize (std::ostream &os, u16 protocol_version) const |
void | deSerialize (std::istream &is) |
Public Attributes | |
enum NodeBoxType | type |
std::vector< aabb3f > | fixed |
aabb3f | wall_top |
aabb3f | wall_bottom |
aabb3f | wall_side |
std::shared_ptr< NodeBoxConnected > | connected |
|
inline |
|
default |
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().
|
inline |
References connected.
Referenced by deSerialize(), getNodeBoxUnion(), push_nodebox(), read_nodebox(), serialize(), and transformNodeBox().
|
inline |
References connected.
void NodeBox::reset | ( | ) |
References BS, connected, fixed, NODEBOX_REGULAR, type, wall_bottom, wall_side, and wall_top.
Referenced by NodeBox(), deSerialize(), and ContentFeatures::reset().
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().
std::shared_ptr<NodeBoxConnected> NodeBox::connected |
Referenced by getConnected(), getConnected(), and reset().
std::vector<aabb3f> NodeBox::fixed |
Referenced by deSerialize(), MapNode::getCollisionBoxes(), getNodeBoxUnion(), push_nodebox(), read_nodebox(), reset(), serialize(), and transformNodeBox().
enum NodeBoxType NodeBox::type |
aabb3f NodeBox::wall_bottom |
Referenced by deSerialize(), getNodeBoxUnion(), push_nodebox(), read_nodebox(), reset(), serialize(), and transformNodeBox().
aabb3f NodeBox::wall_side |
Referenced by deSerialize(), getNodeBoxUnion(), push_nodebox(), read_nodebox(), reset(), serialize(), and transformNodeBox().
aabb3f NodeBox::wall_top |
Referenced by deSerialize(), getNodeBoxUnion(), push_nodebox(), read_nodebox(), reset(), serialize(), and transformNodeBox().