8#include <unordered_set>
27#define DECO_PLACE_CENTER_X 0x01
28#define DECO_PLACE_CENTER_Y 0x02
29#define DECO_PLACE_CENTER_Z 0x04
30#define DECO_USE_NOISE 0x08
31#define DECO_FORCE_PLACEMENT 0x10
32#define DECO_LIQUID_SURFACE 0x20
33#define DECO_ALL_FLOORS 0x40
34#define DECO_ALL_CEILINGS 0x80
Definition mg_decoration.h:101
virtual size_t generate(MMVManip *vm, PcgRandom *pr, v3s16 p, bool ceiling)
Definition mg_decoration.cpp:473
ObjDef * clone() const
Definition mg_decoration.cpp:463
std::shared_ptr< treegen::TreeDef > tree_def
Definition mg_decoration.h:108
Definition mg_decoration.h:86
bool was_cloned
Definition mg_decoration.h:97
Rotation rotation
Definition mg_decoration.h:95
virtual ~DecoSchematic()
Definition mg_decoration.cpp:385
virtual size_t generate(MMVManip *vm, PcgRandom *pr, v3s16 p, bool ceiling)
Definition mg_decoration.cpp:410
ObjDef * clone() const
Definition mg_decoration.cpp:392
Schematic * schematic
Definition mg_decoration.h:96
Definition mg_decoration.h:71
u8 deco_param2_max
Definition mg_decoration.h:82
s16 deco_height
Definition mg_decoration.h:79
virtual void resolveNodeNames()
Definition mg_decoration.cpp:306
ObjDef * clone() const
Definition mg_decoration.cpp:291
s16 deco_height_max
Definition mg_decoration.h:80
virtual size_t generate(MMVManip *vm, PcgRandom *pr, v3s16 p, bool ceiling)
Definition mg_decoration.cpp:313
u8 deco_param2
Definition mg_decoration.h:81
std::vector< content_t > c_decos
Definition mg_decoration.h:78
Definition mg_decoration.h:112
virtual ~DecorationManager()=default
DecorationManager()
Definition mg_decoration.h:141
static Decoration * create(DecorationType type)
Definition mg_decoration.h:124
DecorationManager * clone() const
Definition mg_decoration.cpp:56
size_t placeAllDecos(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
Definition mg_decoration.cpp:39
const char * getObjectTitle() const
Definition mg_decoration.h:119
Definition mg_decoration.h:39
NoiseParams np
Definition mg_decoration.h:58
float fill_ratio
Definition mg_decoration.h:57
void cloneTo(Decoration *def) const
Definition mg_decoration.cpp:269
s16 y_max
Definition mg_decoration.h:56
virtual size_t generate(MMVManip *vm, PcgRandom *pr, v3s16 p, bool ceiling)=0
s16 check_offset
Definition mg_decoration.h:62
virtual void resolveNodeNames()
Definition mg_decoration.cpp:67
virtual ~Decoration()=default
size_t placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
Definition mg_decoration.cpp:131
s16 nspawnby
Definition mg_decoration.h:60
s16 sidelen
Definition mg_decoration.h:54
bool canPlaceDecoration(MMVManip *vm, v3s16 p)
Definition mg_decoration.cpp:74
u32 flags
Definition mg_decoration.h:51
std::vector< content_t > c_spawnby
Definition mg_decoration.h:59
int mapseed
Definition mg_decoration.h:52
std::unordered_set< biome_t > biomes
Definition mg_decoration.h:64
s16 place_offset_y
Definition mg_decoration.h:61
s16 y_min
Definition mg_decoration.h:55
std::vector< content_t > c_place_on
Definition mg_decoration.h:53
Definition mg_schematic.h:79
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
Rotation
Definition mapnode.h:88
DecorationType
Definition mg_decoration.h:21
@ DECO_SCHEMATIC
Definition mg_decoration.h:23
@ DECO_LSYSTEM
Definition mg_decoration.h:24
@ DECO_SIMPLE
Definition mg_decoration.h:22
FlagDesc flagdesc_deco[]
Definition mg_decoration.cpp:18
u16 biome_t
Definition mg_decoration.h:13
Definition mg_decoration.h:19
static std::string p(std::string path)
Definition test_filesys.cpp:53