#include "nodedef.h"
#include "itemdef.h"
#include "log.h"
#include "settings.h"
#include "nameidmapping.h"
#include "util/numeric.h"
#include "util/serialize.h"
#include "util/string.h"
#include "exceptions.h"
#include "debug.h"
#include "gamedef.h"
#include "mapnode.h"
#include <fstream>
#include <algorithm>
#include <cmath>
Macros | |
#define | WRITEBOX(box) |
#define | READBOXES(box) |
#define | TILE_FLAG_BACKFACE_CULLING (1 << 0) |
#define | TILE_FLAG_TILEABLE_HORIZONTAL (1 << 1) |
#define | TILE_FLAG_TILEABLE_VERTICAL (1 << 2) |
#define | TILE_FLAG_HAS_COLOR (1 << 3) |
#define | TILE_FLAG_HAS_SCALE (1 << 4) |
#define | TILE_FLAG_HAS_ALIGN_STYLE (1 << 5) |
Functions | |
void | boxVectorUnion (const std::vector< aabb3f > &boxes, aabb3f *box_union) |
void | getNodeBoxUnion (const NodeBox &nodebox, const ContentFeatures &features, aabb3f *box_union) |
NodeDefManager * | createNodeDefManager () |
static void | removeDupes (std::vector< content_t > &list) |
#define READBOXES | ( | box | ) |
Referenced by NodeBox::deSerialize().
#define TILE_FLAG_BACKFACE_CULLING (1 << 0) |
Referenced by TileDef::deSerialize(), and TileDef::serialize().
#define TILE_FLAG_HAS_ALIGN_STYLE (1 << 5) |
Referenced by TileDef::deSerialize(), and TileDef::serialize().
#define TILE_FLAG_HAS_COLOR (1 << 3) |
Referenced by TileDef::deSerialize(), and TileDef::serialize().
#define TILE_FLAG_HAS_SCALE (1 << 4) |
Referenced by TileDef::deSerialize(), and TileDef::serialize().
#define TILE_FLAG_TILEABLE_HORIZONTAL (1 << 1) |
Referenced by TileDef::deSerialize(), and TileDef::serialize().
#define TILE_FLAG_TILEABLE_VERTICAL (1 << 2) |
Referenced by TileDef::deSerialize(), and TileDef::serialize().
#define WRITEBOX | ( | box | ) |
Referenced by NodeBox::serialize().
Returns the smallest box that contains all boxes in the vector. Box_union is expanded.
[in] | boxes | the vector containing the boxes |
[in,out] | box_union | the union of the arguments |
Referenced by getNodeBoxUnion().
NodeDefManager * createNodeDefManager | ( | ) |
void getNodeBoxUnion | ( | const NodeBox & | nodebox, |
const ContentFeatures & | features, | ||
aabb3f * | box_union ) |
Returns a box that contains the nodebox in every case. The argument node_union is expanded.
[in] | nodebox | the nodebox to be measured |
[in] | features | used to decide whether the nodebox can be rotated |
[in,out] | box_union | the union of the arguments |
References boxVectorUnion(), BS, CPT2_4DIR, CPT2_COLORED_4DIR, CPT2_COLORED_FACEDIR, CPT2_FACEDIR, NodeBox::fixed, NodeBox::getConnected(), NODEBOX_CONNECTED, NODEBOX_FIXED, NODEBOX_LEVELED, NODEBOX_WALLMOUNTED, ContentFeatures::param_type_2, NodeBox::type, NodeBox::wall_bottom, NodeBox::wall_side, and NodeBox::wall_top.
Referenced by NodeDefManager::deSerialize(), and NodeDefManager::set().
|
static |