#include <mg_decoration.h>
Inheritance diagram for DecoSimple:
Collaboration diagram for DecoSimple:Public Member Functions | |
| ObjDef * | clone () const |
| virtual void | resolveNodeNames () |
| virtual size_t | generate (MMVManip *vm, PcgRandom *pr, v3s16 p, bool ceiling) |
Public Member Functions inherited from Decoration | |
| Decoration ()=default | |
| virtual | ~Decoration ()=default |
| bool | canPlaceDecoration (MMVManip *vm, v3s16 p) |
| size_t | placeDeco (Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax) |
Public Member Functions inherited from ObjDef | |
| virtual | ~ObjDef ()=default |
Public Member Functions inherited from NodeResolver | |
| 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) |
Public Attributes | |
| std::vector< content_t > | c_decos |
| s16 | deco_height |
| s16 | deco_height_max |
| u8 | deco_param2 |
| u8 | deco_param2_max |
Public Attributes inherited from Decoration | |
| u32 | flags = 0 |
| int | mapseed = 0 |
| std::vector< content_t > | c_place_on |
| s16 | sidelen = 1 |
| s16 | y_min |
| s16 | y_max |
| float | fill_ratio = 0.0f |
| NoiseParams | np |
| std::vector< content_t > | c_spawnby |
| s16 | nspawnby |
| s16 | place_offset_y = 0 |
| s16 | check_offset = -1 |
| std::unordered_set< biome_t > | biomes |
Public Attributes inherited from ObjDef | |
| u32 | index |
| u32 | uid |
| ObjDefHandle | handle |
| std::string | name |
Public Attributes inherited from NodeResolver | |
| std::vector< std::string > | m_nodenames |
| std::vector< size_t > | m_nnlistsizes |
Additional Inherited Members | |
Protected Member Functions inherited from Decoration | |
| void | cloneTo (Decoration *def) const |
Protected Member Functions inherited from ObjDef | |
| void | cloneTo (ObjDef *def) const |
Protected Attributes inherited from NodeResolver | |
| const NodeDefManager * | m_ndef = nullptr |
| u32 | m_nodenames_idx = 0 |
|
virtual |
Implements ObjDef.
References c_decos, Decoration::cloneTo(), deco_height, deco_height_max, deco_param2, and deco_param2_max.
Here is the call graph for this function:Implements Decoration.
References VoxelArea::add_y(), c_decos, Decoration::canPlaceDecoration(), CONTENT_AIR, CONTENT_IGNORE, DECO_FORCE_PLACEMENT, deco_height, deco_height_max, deco_param2, deco_param2_max, Decoration::flags, MapNode::getContent(), VoxelArea::getExtent(), VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, VoxelArea::MaxEdge, VoxelArea::MinEdge, p(), Decoration::place_offset_y, and PcgRandom::range().
Here is the call graph for this function:
|
virtual |
Reimplemented from Decoration.
References c_decos, NodeResolver::getIdsFromNrBacklog(), and Decoration::resolveNodeNames().
Here is the call graph for this function:| std::vector<content_t> DecoSimple::c_decos |
Referenced by clone(), generate(), and resolveNodeNames().
| s16 DecoSimple::deco_height |
Referenced by clone(), generate(), and read_deco_simple().
| s16 DecoSimple::deco_height_max |
Referenced by clone(), generate(), and read_deco_simple().
| u8 DecoSimple::deco_param2 |
Referenced by clone(), generate(), and read_deco_simple().
| u8 DecoSimple::deco_param2_max |
Referenced by clone(), generate(), and read_deco_simple().