#include <mg_decoration.h>
|
| | Decoration ()=default |
| |
| virtual | ~Decoration ()=default |
| |
| virtual void | resolveNodeNames () |
| |
| bool | canPlaceDecoration (MMVManip *vm, v3s16 p) |
| |
| size_t | placeDeco (Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax) |
| |
| virtual size_t | generate (MMVManip *vm, PcgRandom *pr, v3s16 p, bool ceiling)=0 |
| |
| virtual | ~ObjDef ()=default |
| |
| virtual ObjDef * | clone () const =0 |
| |
| | NodeResolver () |
| |
| virtual | ~NodeResolver () |
| |
| void | cloneTo (NodeResolver *res) const |
| |
| bool | getIdFromNrBacklog (content_t *result_out, const std::string &node_alt, content_t c_fallback, bool error_on_fallback=true) |
| |
| bool | getIdsFromNrBacklog (std::vector< content_t > *result_out, bool all_required=false, content_t c_fallback=CONTENT_IGNORE) |
| |
| bool | isResolveDone () const |
| |
| void | reset (bool resolve_done=false) |
| |
◆ Decoration()
| Decoration::Decoration |
( |
| ) |
|
|
default |
◆ ~Decoration()
| virtual Decoration::~Decoration |
( |
| ) |
|
|
virtualdefault |
◆ canPlaceDecoration()
References ARRLEN, c_place_on, c_spawnby, check_offset, CONTAINS, VoxelArea::contains(), MapNode::getContent(), ObjDef::index, VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, nspawnby, and p().
Referenced by DecoLSystem::generate(), DecoSchematic::generate(), and DecoSimple::generate().
◆ cloneTo()
| void Decoration::cloneTo |
( |
Decoration * | def | ) |
const |
|
protected |
References biomes, c_place_on, c_spawnby, check_offset, ObjDef::cloneTo(), fill_ratio, flags, mapseed, np, nspawnby, place_offset_y, sidelen, y_max, and y_min.
Referenced by DecoLSystem::clone(), DecoSchematic::clone(), and DecoSimple::clone().
◆ generate()
◆ placeDeco()
| size_t Decoration::placeDeco |
( |
Mapgen * | mg, |
|
|
u32 | blockseed, |
|
|
v3s16 | nmin, |
|
|
v3s16 | nmax ) |
References GenerateNotifier::addDecorationEvent(), Mapgen::biomemap, biomes, DECO_ALL_CEILINGS, DECO_ALL_FLOORS, DECO_LIQUID_SURFACE, DECO_USE_NOISE, fill_ratio, Mapgen::findGroundLevel(), Mapgen::findLiquidSurface(), flags, generate(), Mapgen::gennotify, Mapgen::getSurfaces(), Mapgen::heightmap, ObjDef::index, mapseed, MAX_MAP_GENERATION_LIMIT, NoisePerlin2D(), np, PcgRandom::range(), sidelen, Mapgen::vm, x, y, y_max, and z.
Referenced by DecorationManager::placeAllDecos().
◆ resolveNodeNames()
| void Decoration::resolveNodeNames |
( |
| ) |
|
|
virtual |
◆ biomes
| std::unordered_set<biome_t> Decoration::biomes |
◆ c_place_on
| std::vector<content_t> Decoration::c_place_on |
◆ c_spawnby
◆ check_offset
| s16 Decoration::check_offset = -1 |
◆ fill_ratio
| float Decoration::fill_ratio = 0.0f |
◆ flags
| u32 Decoration::flags = 0 |
◆ mapseed
| int Decoration::mapseed = 0 |
◆ np
◆ nspawnby
◆ place_offset_y
| s16 Decoration::place_offset_y = 0 |
◆ sidelen
| s16 Decoration::sidelen = 1 |
◆ y_max
◆ y_min
The documentation for this class was generated from the following files: